public interface ClientAuthenticationInterceptor
Successful client authentications can be subjected to additional checks
and rejected with an InvalidClientException
to produce an OAuth 2.0
invalid_client
error.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
default void |
interceptError(com.nimbusds.oauth2.sdk.auth.ClientAuthentication clientAuth,
com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException exception,
ClientAuthenticationContext context)
Intercepts a failed client authentication.
|
default void |
interceptSuccess(com.nimbusds.oauth2.sdk.auth.ClientAuthentication clientAuth,
ClientAuthenticationContext context)
Intercepts a successful client authentication.
|
default void interceptSuccess(com.nimbusds.oauth2.sdk.auth.ClientAuthentication clientAuth, ClientAuthenticationContext context) throws com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException
clientAuth
- The client authentication.context
- The client authentication context.com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException
- To reject the client authentication
with an invalid_client
error. The exception message will be logged
internally and will not be exposed to the client in the
invalid_client
error description.default void interceptError(com.nimbusds.oauth2.sdk.auth.ClientAuthentication clientAuth, com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException exception, ClientAuthenticationContext context)
clientAuth
- The client authentication.exception
- The invalid client exception.context
- The client authentication context.Copyright © 2021 Connect2id Ltd.. All rights reserved.