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 BaseWebAuthRequestCollection.WebAuthResponseHandlerinterface which provides some default method implementations common to many types of handlers
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidapplyResponse(WebAuthSession webAuthSession, WebAuthResponseContext webAuthResponseContext)java.net.URIdoHandle(RequestContext requestContext, WebAuthUserContext webAuthUserContext)Handle the web auth response.java.util.Optional<java.lang.String>getIdentityProvider(RequestContext requestContext)com.google.common.collect.ImmutableCollection<java.lang.String>getSecurityZones(RequestContext requestContext)default java.net.URIhandle(RequestContext requestContext, WebAuthResponseContext webAuthResponseContext)Handle the web auth response.default booleanshouldRotateSessionId()- 
Methods inherited from interface com.inductiveautomation.ignition.gateway.auth.web.WebAuthRequestCollection.WebAuthResponseHandlerhandleTimeout
 
- 
 
- 
- 
- 
Method Detail- 
getIdentityProvider@Nonnull java.util.Optional<java.lang.String> getIdentityProvider(@Nonnull RequestContext requestContext)- Parameters:
- requestContext- the- RequestContextfor 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<java.lang.String> getSecurityZones(@Nonnull RequestContext requestContext)- Parameters:
- requestContext- the- RequestContextfor the HTTP Request carrying the web auth response
- Returns:
- the security zones for the current request context
 
 - 
applyResponsevoid applyResponse(@Nonnull WebAuthSession webAuthSession, @Nonnull WebAuthResponseContext webAuthResponseContext)
 - 
doHandle@Nonnull java.net.URI doHandle(@Nonnull RequestContext requestContext, @Nonnull WebAuthUserContext webAuthUserContext) throws java.lang.ExceptionHandle the web auth response.- Parameters:
- requestContext- the- RequestContextfor the HTTP Request carrying the web auth response
- webAuthUserContext- the- WebAuthUserContextcontaining the- WebAuthUser, granted security levels, and security zones
- Returns:
- the URIto which the user should be redirected after handling the web auth response
- Throws:
- java.lang.Exception- if there is an unexpected problem handling the web auth response
 
 - 
shouldRotateSessionIddefault boolean shouldRotateSessionId() 
 - 
handle@Nonnull default java.net.URI handle(@Nonnull RequestContext requestContext, @Nonnull WebAuthResponseContext webAuthResponseContext) throws java.lang.ExceptionDescription copied from interface:WebAuthRequestCollection.WebAuthResponseHandlerHandle the web auth response.- Specified by:
- handlein interface- WebAuthRequestCollection.WebAuthResponseHandler
- Parameters:
- requestContext- the- RequestContextfor the HTTP Request carrying the web auth response
- webAuthResponseContext- the- WebAuthResponseContextfor the web auth response
- Returns:
- the URIto which the user should be redirected after handling the web auth response
- Throws:
- java.lang.Exception- if there is an unexpected problem handling the web auth response
 
 
- 
 
-