UAABrowserAuthenticationHandler
open class UAABrowserAuthenticationHandler: BrowserBasedAuthenticationHandler
BrowserBasedAuthenticationHandler
subclass that handles standard predix.io UAA browser-based login page authentication.
Uses the UAA authorization code grant
mechanism, which then uses UAACodeExchangeAuthenticationHandler
to exchange that authorization code for authentication and refresh tokens.
-
Initializes and returns a UAABrowserAuthenticationHandler object with the provided parameters
- redirectURI: URI of the redirect used to indicate the browser-based Oauth2 authentication flow has completed successfully.
Declaration
Swift
override public init(redirectURI: String)
-
Not expected to be called from external consumers.
Subclasses may override this method to provide additional query parameters to the loadWebAuthenticationUrl sent to the
BrowserBasedAuthenticationHandlerDelegate
See also: BrowserBasedAuthenticationHandlerDelegate.authenticationHandler(, loadWebAuthenticationUrl: , shouldFollowRedirect:)
See also
BrowserBasedAuthenticationHandlerDelegate.authenticationHandler(, loadWebAuthenticationUrl: , shouldFollowRedirect:)Declaration
Swift
override open func createAuthenticationLoginQueryItems() -> [URLQueryItem]
-
Called by subsclasses to indicate an authentication process is complete.
Should not be called from external consumers. The
cancelAuthentication
method should be used to end an in-progress authentication.Declaration
Swift
override open func authenticationComplete(result: AuthenticateResult)