OAuth2Exception

sealed class OAuth2Exception : Exception

Represents an error during communicating to OAuth2 server.

Types

Link copied to clipboard

Thrown when OAuth2 server responds with the "invalid_grant" error.

Link copied to clipboard

Thrown when a nonce verification failed.

Link copied to clipboard

Thrown when an OAuth2 server responds with a successful HTTP status and expected content type that was successfully decoded but the response doesn't contain a error code nor access token.

Link copied to clipboard
class UnknownException(details: String, val errorCode: String) : OAuth2Exception, CopyableThrowable<OAuth2Exception.UnknownException>

Thrown when an OAuth2 server responds with errorCode.

Link copied to clipboard

Thrown when an OAuth2 server responds with the "unsupported_grant_type" error.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

OAuth2 server replied with

Link copied to clipboard
open val message: String?

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard