public interface SAML2WebStrategy
|Modifier and Type||Method and Description|
Starts the SAML2 authentication by opening the finish endpoint URL.
void startSaml2Authentication(android.content.Context appContext, java.lang.String finishEndpoint, java.lang.String finishEndpointParam, WebCertificateRequestHandler certificateRequestHandler, SAML2AuthenticationCompleteCallback callback)
Implementations are expected to open the specified finish endpoint as a web page and close it when the final redirect happens. Furthermore, the specified callback must be invoked otherwise the pending HTTP request(s) waiting for it to complete might be held up indefinitely.
WebCertificateRequestHandler can be used in the web flow to respond to SSL/TLS client certificate challenges.
A successful authentication is assumed to result in a series of HTTP cookies being set on the client side. Refer to the documentation of the callback for the details.
It is guaranteed that within the application only one method of this type is executing at a given time. This is because strategies are shared across conversations and conversation managers.
appContext- the application context, must be non-null
finishEndpoint- the URL where to start the authentication, must be non-null
finishEndpointParam- the name of the URL parameter to look for in the final redirect back to the finish endpoint, must be non-null
certificateRequestHandler- the certificate request handler to be passed to the web flow, can be null
callback- the callback to invoke when the SAML2 authentication process completes, must be non-null