Class WebAuthRequestCollection.WebAuthRequestBuilder<T extends WebAuthRequestCollection.WebAuthRequestBuilder<T>>
java.lang.Object
com.inductiveautomation.ignition.gateway.auth.web.WebAuthRequestCollection.WebAuthRequestBuilder<T>
- Direct Known Subclasses:
WebAuthRequestCollection.LoginRequestBuilder,WebAuthRequestCollection.LogoutRequestBuilder
- Enclosing class:
- WebAuthRequestCollection
public abstract class WebAuthRequestCollection.WebAuthRequestBuilder<T extends WebAuthRequestCollection.WebAuthRequestBuilder<T>>
extends Object
Provides a fluent-API (builder-style) pattern for creating new web auth requests encoded as a
URI-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new Web Auth Request from this builder's paramssetErrorRedirectUri(URI errorRedirectUri) setNativeApp(Boolean nativeApp) setRequestUri(URI requestUri) setTimeout(Integer timeout)
-
Method Details
-
setIdp
- Parameters:
idp- the name of the IdP into which the user should login- Returns:
- this builder
-
setApp
- Parameters:
app- the name of the app the user is logging into- Returns:
- this builder
-
setRequestUri
- Parameters:
requestUri- the incoming HTTP RequestURIwhich triggered this login request- Returns:
- this builder
-
setHandler
- Parameters:
handler- theWebAuthRequestCollection.WebAuthResponseHandlerto handle the web auth response for this request- Returns:
- this builder
-
setErrorRedirectUri
-
setNativeApp
- Parameters:
nativeApp- trigger the native app authentication flow- Returns:
- this builder
-
setTimeout
- Parameters:
timeout- time in minutes to wait for the response before giving up- Returns:
- this builder
-
build
Builds a new Web Auth Request from this builder's params- Returns:
- the
URIto which the user should be redirected in order to login at the IdP - Throws:
NullPointerException- if any of the following were not set on this builder: IdP name, app name, requestUri, or handlerNotFoundException- if an IdP with the given name does not existException- if there is an unexpected problem creating the new web auth request
-