public interface CustomTokenResponseComposer
This SPI can be used to include additional parameters in the token
response, such as an authorization_details
parameter required in
OAuth 2.0 Rich Authorization Requests.
Modifier and Type | Method and Description |
---|---|
com.nimbusds.oauth2.sdk.TokenResponse |
compose(com.nimbusds.oauth2.sdk.TokenResponse originalResponse,
TokenResponseContext context)
Composes a custom token response.
|
com.nimbusds.oauth2.sdk.TokenResponse compose(com.nimbusds.oauth2.sdk.TokenResponse originalResponse, TokenResponseContext context)
originalResponse
- The original success or error response. For
an OpenID token response an instance of
OIDCTokenResponse
.
Not null
.context
- The token response context. Not
null
.Copyright © 2021 Connect2id Ltd.. All rights reserved.