public interface TokenIntrospectionResponseShaper
The SPI may be used to respond differently to different resource servers making the same request. For instance, an authorisation server may limit which scopes from a given token are returned for each resource server to prevent a resource server from learning more about the larger network than is necessary for its operation.
See OAuth 2.0 Token Introspection (RFC 7662), section 2.2.
Modifier and Type | Method and Description |
---|---|
com.nimbusds.oauth2.sdk.TokenIntrospectionSuccessResponse |
shape(com.nimbusds.oauth2.sdk.TokenIntrospectionSuccessResponse response,
TokenIntrospectionContext context)
Shapes the specified token introspection response.
|
com.nimbusds.oauth2.sdk.TokenIntrospectionSuccessResponse shape(com.nimbusds.oauth2.sdk.TokenIntrospectionSuccessResponse response, TokenIntrospectionContext context)
response
- The token introspection response. Not null
.context
- The token introspection context. Not null
.Copyright © 2018 Connect2id Ltd.. All rights reserved.