T - the PluginConfiguration class for this implementation of
SiteAuthenticatorInterceptorpublic interface SiteAuthenticatorInterceptor<T extends PluginConfiguration> extends DescribesUIConfigurable, ConfigurablePlugin<T>
SiteAuthenticatorInterceptor is the runtime instantiation of a Site Authenticator defined in the
Administrative API. It can be used to modify a HTTP request to include authentication credentials that a
Site can use to validate that the HTTP request came from PingAccess. The Site Authenticator can also intercept
and handle authentication challenge responses from the Site, in the event that the authentication information
included in the request was invalid.
SiteAuthenticatorInterceptor must be annotated with the
SiteAuthenticator annotation.
SiteAuthenticatorInterceptor should be placed in a
META-INF/services/com.pingidentity.pa.sdk.siteauthenticator.SiteAuthenticatorInterceptor resource file
that is packaged in the jar containing the compiled class for the implementation. This signals to PingAccess that
the class is a valid SiteAuthenticatorInterceptor implementation.
com.pingidentity.pa.sdk.plugins
documentation, a SiteAuthenticatorInterceptor has the following additional responsibilities:
SiteAuthenticatorInterceptor operates on a HTTP transaction by interacting with the
Exchange and its contained objects. Supporting classes can be found
within com.pingidentity.pa.sdk.http.
The handleRequest(Exchange) method is invoked to allow the
SiteAuthenticatorInterceptor to include authentication credentials that allows the Site to validate that
the request came from PingAccess.
The handleResponse(Exchange) method is invoked to allow the
SiteAuthenticatorInterceptor to handle any authentication challenge responses the Site produces when
validating the authentication credentials set in handleRequest(Exchange).
com.pingidentity.pa.sdk.plugins| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(Exchange exchange)
|
void |
handleResponse(Exchange exchange)
|
getConfigurationFieldsconfigure, getConfigurationvoid handleRequest(Exchange exchange) throws AccessException
exchange - the Exchange for the current transactionAccessException - to indicate that a specific error response should be generatedvoid handleResponse(Exchange exchange) throws AccessException
SiteAuthenticatorInterceptor to modify the Response attached to the
Exchange. This will be invoked after handleRequest(Exchange) for the same Exchange instance,
when a Response is available on the Exchange.exchange - the Exchange for the current transactionAccessException - to indicate that a specific error response should be generatedCopyright 2023 Ping Identity Corp. All rights reserved.