verifyWithOAuth2
suspend fun verifyWithOAuth2(credential: UserPasswordCredential, client: HttpClient, settings: OAuthServerSettings.OAuth2ServerSettings): OAuthAccessTokenResponse.OAuth2
Content copied to clipboard
Implements Resource Owner Password Credentials Grant.
Takes UserPasswordCredential and validates it using OAuth2 sequence, provides OAuthAccessTokenResponse.OAuth2 if succeeds.