OAuthIssue

@Serializable
sealed class OAuthIssue : AuthIssue

Common issues for OAuth flow.

Inheritors

Types

Link copied to clipboard
@Serializable
data class ProviderUserMappingFailed(val message: String = "Failed to map provider user data to a local user", val status: Int = 401) : AuthIssue.OAuthIssue
Link copied to clipboard
@Serializable
data class TokenExchangeFailed(val message: String = "Failed to exchange OAuth code for access token", val status: Int = 401) : AuthIssue.OAuthIssue
Link copied to clipboard
@Serializable
data class UserInfoFetchFailed(val message: String = "Failed to fetch user information from OAuth provider", val status: Int = 401) : AuthIssue.OAuthIssue

Properties

Link copied to clipboard
abstract val message: String

The error message.

Link copied to clipboard
abstract val status: Int

The HTTP status code. Should be something supported by http4k.