Class NimbusExtensionsKt
-
- All Implemented Interfaces:
public final class NimbusExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanisPrompt(AuthenticationRequest $self)final static UnitverifyPkce(AuthenticationRequest $self, TokenRequest tokenRequest)final static GrantTypegrantType(TokenRequest $self)final static List<String>scopesWithoutOidcScopes(TokenRequest $self)final static TokenExchangeGranttokenExchangeGrantOrNull(TokenRequest $self)final static AuthorizationCodeauthorizationCode(TokenRequest $self)final static <T extends AuthorizationGrant> Tgrant(TokenRequest $self, Class<T> type)final static StringclientIdAsString(TokenRequest $self)final static IntegerexpiresIn(SignedJWT $self)final static JWTClaimsSetverifySignatureAndIssuer(SignedJWT $self, Issuer issuer, JWKSet jwkSet, JWSAlgorithm jwsAlgorithm)final static ClientAuthenticationclientAuthentication(HTTPRequest $self)final static PrivateKeyJWTrequirePrivateKeyJwt(ClientAuthentication $self, String requiredAudience, Long maxLifetimeSeconds, String additionalAcceptedAudience)TODO: We currently accept multiple audiences for backwards compatibility as updates to RFC7523 are pending. -
-
Method Detail
-
verifyPkce
final static Unit verifyPkce(AuthenticationRequest $self, TokenRequest tokenRequest)
-
grantType
final static GrantType grantType(TokenRequest $self)
-
scopesWithoutOidcScopes
final static List<String> scopesWithoutOidcScopes(TokenRequest $self)
-
tokenExchangeGrantOrNull
final static TokenExchangeGrant tokenExchangeGrantOrNull(TokenRequest $self)
-
authorizationCode
final static AuthorizationCode authorizationCode(TokenRequest $self)
-
clientIdAsString
final static String clientIdAsString(TokenRequest $self)
-
verifySignatureAndIssuer
final static JWTClaimsSet verifySignatureAndIssuer(SignedJWT $self, Issuer issuer, JWKSet jwkSet, JWSAlgorithm jwsAlgorithm)
-
clientAuthentication
final static ClientAuthentication clientAuthentication(HTTPRequest $self)
-
requirePrivateKeyJwt
final static PrivateKeyJWT requirePrivateKeyJwt(ClientAuthentication $self, String requiredAudience, Long maxLifetimeSeconds, String additionalAcceptedAudience)
TODO: We currently accept multiple audiences for backwards compatibility as updates to RFC7523 are pending. Relevant excerpts:
The JWT MUST contain an aud (audience) claim containing the issuer identifier RFC8414 of the authorization server as its sole value.
Unlike the aud value specified in RFC7523, there MUST be no value other than the issuer identifier of the intended authorization server used as the audience of the JWT; this includes that the token endpoint URL of the authorization server MUST NOT be used as an audience value.
The authorization server MUST reject any JWT that does not contain its issuer identifier as its sole audience value.
See RFC7523bis for details. Compliance with the RFC will require breaking changes.
-
-
-
-