api

http4k / org.http4k.security.oauth.server / AuthorizationCodes

AuthorizationCodes

interface AuthorizationCodes

Provides a consistent way to manage authorization codes

Functions

Name Summary
create Create new authorization code to be given to client after the user successfully authorize access The generated authorization code needs to be associated with the clientId and redirectUri for later verification. It should also be associated with a given expire date (recommended to be shorter than 10 minutes)abstract fun create(request: Request, authRequest: AuthRequest, response: Response): Result<AuthorizationCode, UserRejectedRequest>
detailsFor Retrieve the details of an authorization codeabstract fun detailsFor(code: AuthorizationCode): AuthorizationCodeDetails