issueToken

fun issueToken(issuerId: String, clientId: String, tokenCallback: OAuth2TokenCallback): SignedJWT

Issues a signed JWT as part of the authorization code grant.

Parameters

issuerId

The path or identifier for the issuer.

clientId

The identifier for the client or Relying Party that requests the token.

tokenCallback

A callback that implements the OAuth2TokenCallback interface for token customization.


fun issueToken(issuerId: String = "default", subject: String = UUID.randomUUID().toString(), audience: String? = "default", claims: Map<String, Any> = emptyMap(), expiry: Long = 3600): SignedJWT

Convenience method for issuing a signed JWT with default values.

See issueToken.