Interface WebAuthRequestCollection.BaseWebAuthResponseHandler
- All Superinterfaces:
 WebAuthRequestCollection.WebAuthResponseHandler
- All Known Subinterfaces:
 WebAuthRequestCollection.LoginResponseHandler,WebAuthRequestCollection.LogoutResponseHandler
- Enclosing class:
 - WebAuthRequestCollection
 
public static interface WebAuthRequestCollection.BaseWebAuthResponseHandler
extends WebAuthRequestCollection.WebAuthResponseHandler
Base 
WebAuthRequestCollection.WebAuthResponseHandler interface which provides some default method implementations common to many
 types of handlers- 
Method Summary
Modifier and TypeMethodDescriptionvoidapplyResponse(WebAuthSession webAuthSession, WebAuthResponseContext webAuthResponseContext) doHandle(RequestContext requestContext, WebAuthUserContext webAuthUserContext) Handle the web auth response.getIdentityProvider(RequestContext requestContext) com.google.common.collect.ImmutableCollection<String>getSecurityZones(RequestContext requestContext) default URIhandle(RequestContext requestContext, WebAuthResponseContext webAuthResponseContext) Handle the web auth response.default booleanMethods inherited from interface com.inductiveautomation.ignition.gateway.auth.web.WebAuthRequestCollection.WebAuthResponseHandler
handleTimeout 
- 
Method Details
- 
getIdentityProvider
- Parameters:
 requestContext- theRequestContextfor the HTTP Request carrying the web auth response- Returns:
 - the Identity Provider which should be used to process the web auth response
 
 - 
getSecurityZones
@Nonnull com.google.common.collect.ImmutableCollection<String> getSecurityZones(@Nonnull RequestContext requestContext) - Parameters:
 requestContext- theRequestContextfor the HTTP Request carrying the web auth response- Returns:
 - the security zones for the current request context
 
 - 
applyResponse
void applyResponse(@Nonnull WebAuthSession webAuthSession, @Nonnull WebAuthResponseContext webAuthResponseContext)  - 
doHandle
@Nonnull URI doHandle(@Nonnull RequestContext requestContext, @Nonnull WebAuthUserContext webAuthUserContext) throws Exception Handle the web auth response.- Parameters:
 requestContext- theRequestContextfor the HTTP Request carrying the web auth responsewebAuthUserContext- theWebAuthUserContextcontaining theWebAuthUser, granted security levels, and security zones- Returns:
 - the 
URIto which the user should be redirected after handling the web auth response - Throws:
 Exception- if there is an unexpected problem handling the web auth response
 - 
shouldRotateSessionId
default boolean shouldRotateSessionId() - 
handle
@Nonnull default URI handle(@Nonnull RequestContext requestContext, @Nonnull WebAuthResponseContext webAuthResponseContext) throws Exception Description copied from interface:WebAuthRequestCollection.WebAuthResponseHandlerHandle the web auth response.- Specified by:
 handlein interfaceWebAuthRequestCollection.WebAuthResponseHandler- Parameters:
 requestContext- theRequestContextfor the HTTP Request carrying the web auth responsewebAuthResponseContext- theWebAuthResponseContextfor the web auth response- Returns:
 - the 
URIto which the user should be redirected after handling the web auth response - Throws:
 Exception- if there is an unexpected problem handling the web auth response
 
 -