ClientValidator

interface ClientValidator

Provides a consistent way to retrieve clients attempting to use an authorization code flow

Functions

Link copied to clipboard
abstract fun validateClientId(request: Request, clientId: ClientId): Boolean
Link copied to clipboard
abstract fun validateCredentials(request: Request, clientId: ClientId, clientSecret: String): Boolean

Validate that credentials provided by the client match its registration records

Link copied to clipboard
abstract fun validateRedirection(request: Request, clientId: ClientId, redirectionUri: Uri): Boolean
Link copied to clipboard
abstract fun validateScopes(request: Request, clientId: ClientId, scopes: List<String>): Boolean