Package com.konfigyr.gradle
Class KonfigyrExtension.TokenExchangeSpec
java.lang.Object
com.konfigyr.gradle.KonfigyrExtension.TokenExchangeSpec
- Enclosing class:
KonfigyrExtension
Configures a
TokenExchange, used for the OAuth2 Token Exchange grant, as defined by
RFC 8693.- Since:
- 1.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<String> Specify the OAuthclient_idthat is used to get the OAuth access token.org.gradle.api.provider.Property<String> The token being exchanged for an access token.org.gradle.api.provider.Property<String> An identifier, as defined by RFC 8693, for the type of thesubjectToken(for exampleurn:ietf:params:oauth:token-type:jwtorurn:ietf:params:oauth:token-type:id_token).booleancom.konfigyr.Credentials
-
Method Details
-
isConfigured
public boolean isConfigured() -
toCredentials
public com.konfigyr.Credentials toCredentials() -
getClientId
Specify the OAuthclient_idthat is used to get the OAuth access token. This value can be specified by theKONFIGYR_CLIENT_IDenvironment variable. -
getSubjectToken
The token being exchanged for an access token. This value can be specified by theKONFIGYR_SUBJECT_TOKENenvironment variable. -
getSubjectTokenType
An identifier, as defined by RFC 8693, for the type of thesubjectToken(for exampleurn:ietf:params:oauth:token-type:jwtorurn:ietf:params:oauth:token-type:id_token). There is no default value, this must always be set explicitly.
-