AuthenticationApi

interface AuthenticationApi

Functions

authenticateWithJwt
Link copied to clipboard
@POST(value = jwtAuthenticate)
abstract suspend fun authenticateWithJwt(@Body() jwtAuthenticateRequestDto: JwtAuthenticateRequestDto): Response<JwtAuthenticateResponseDto>
Authentication using JWT Allows clients to authenticate and acquire an access token using a JSON Web Token.
createAccessToken
Link copied to clipboard
@POST(value = accessToken)
abstract suspend fun createAccessToken(@Query(value = grant_typegrantType: String, @Query(value = redirect_uriredirectUri: String, @Query(value = codecode: String, @Query(value = refresh_tokenrefreshToken: String, @Body() accessTokenRequestDto: AccessTokenRequestDto): Response<AccessTokenResponseDto>
Obtain an Access Token Allows a client to use its credentials to obtain an access token, to swap an authorization grant for an access token, or to swap a refresh token for a new access token.
getAuthorizationGrant
Link copied to clipboard
@GET(value = authorizationGrant)
abstract suspend fun getAuthorizationGrant(@Query(value = client_idclientId: String, @Query(value = response_typeresponseType: String, @Query(value = redirect_uriredirectUri: String, @Query(value = credential_typecredentialType: String? = "sensibill", @Query(value = redirectredirect: String? = "true"): Response<AuthorizationResponse>
Request an authorization grant Allows clients to request an authorization grant to begin the OAuth2 flow.
getClientInfo
Link copied to clipboard
@GET(value = clientInfo)
abstract suspend fun getClientInfo(): Response<ClientInfoResponseDto>
Client information Allows a client to retrieve information about itself.
invalidateAccessToken
Link copied to clipboard
@POST(value = invalidate)
abstract suspend fun invalidateAccessToken(): Response<Unit>
Invalidate access token This endpoint can be used to permanently invalidate an access token.
logout
Link copied to clipboard
@GET(value = logout)
abstract suspend fun logout(): Response<Unit>
Logout user Performs a user logout, clearing the session and invalidating the access token.