Interface ImpersonationConfig
STILL IN BETA. API MAY CHANGE.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ImpersonationConfig.Builderbuilder()static ImpersonationConfigfromConfigSupplier(Function<String, String> config) An alternate client ID to use for impersonations only.An alternate client secret to use for impersonations only.The root URL of an alternate OpenID Connect identity issuer provider, which will be used for discovering supported endpoints and their locations, but only for impersonation.Custom OAuth2 scopes for impersonation only.An alternate OAuth2 token endpoint, for impersonation only.default booleanWhether "impersonation" is enabled.
-
Field Details
-
SCOPES_INHERIT
-
-
Method Details
-
fromConfigSupplier
-
isEnabled
@Default default boolean isEnabled()Whether "impersonation" is enabled. If enabled, the access token obtained from the OAuth2 server with the configured initial grant will be exchanged for a new token, using the token exchange grant type.- See Also:
-
getClientId
An alternate client ID to use for impersonations only. If not provided, the global client ID will be used. If provided, and if the client is confidential, then its secret must be provided withgetClientSecret()– the global client secret will NOT be used.- See Also:
-
getClientSecret
An alternate client secret to use for impersonations only. Required if the alternate client obtained fromgetClientId()is confidential.- See Also:
-
getIssuerUrl
The root URL of an alternate OpenID Connect identity issuer provider, which will be used for discovering supported endpoints and their locations, but only for impersonation.If neither this property nor
getTokenEndpoint()are defined, the global token endpoint will be used for impersonation. This means that the same authorization server will be used for both the initial token request and the impersonation token exchange.Endpoint discovery is performed using the OpenID Connect Discovery metadata published by the issuer. See OpenID Connect Discovery 1.0 for more information.
- See Also:
-
getTokenEndpoint
An alternate OAuth2 token endpoint, for impersonation only.If neither this property nor
getIssuerUrl()are defined, the global token endpoint will be used for impersonation. This means that the same authorization server will be used for both the initial token request and the impersonation token exchange.- See Also:
-
getScopes
Custom OAuth2 scopes for impersonation only. Optional.The special value
SCOPES_INHERIT(default) means that the scopes will be inherited from the global OAuth2 configuration.- See Also:
-
builder
-