OAuthCodeChallengeMethod

abstract class OAuthCodeChallengeMethod(val method: String)

Represents an OAuth code challenge method that the OAuth server will use to verify the code challenge.

Inheritors

Constructors

Link copied to clipboard
constructor(method: String)

Types

Link copied to clipboard

The "plain" code challenge method, which does not apply any transformation to the code verifier. This is not secure and is generally not recommended for production use.

Link copied to clipboard

The "S256" code challenge method, which applies SHA-256 hashing to the code verifier. This must be supported by all clients and Authorization Servers; see RFC 7636 for details.

Properties

Link copied to clipboard
open val method: String

Functions

Link copied to clipboard
abstract suspend fun provideCodeChallenge(codeVerifier: String): String