Class WebAuthUserContext
java.lang.Object
com.inductiveautomation.ignition.common.auth.web.WebAuthUserContext
- All Implemented Interfaces:
 Serializable
Provides context about a user who authenticated using web-based protocols such as OIDC or SAML
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides a fluent-API (builder-style) pattern for creating newWebAuthUserContextobjectsstatic classAJsonSerializerandJsonDeserializerimplementation for serializing and de-serializingWebAuthUserContextobjects to / from JSON using GSON APIs. - 
Method Summary
Modifier and TypeMethodDescriptionstatic WebAuthUserContext.Builderbuilder()booleangetIdp()com.google.common.collect.ImmutableCollection<SecurityLevelConfig>com.google.common.collect.ImmutableCollection<String>inthashCode()toString() 
- 
Method Details
- 
getIdp
- Returns:
 - an 
Optionalcontaining the name of the IdP from where the user authenticated, or an empty Optional if the user is not authenticated in this context 
 - 
getSecurityZones
- Returns:
 - the names of the security zones that the user belongs to in this context
 
 - 
getWebAuthUser
- Returns:
 - an 
Optionalcontaining theWebAuthUserwhich contains attributes such as their username and roles. Returns an empty Optional if the user is not authenticated in this context 
 - 
getSecurityLevels
- Returns:
 - the security levels granted to the user in this context, represented in tree-form as an 
ImmutableCollectionofSecurityLevelConfigobjects 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
builder
- Returns:
 - a new 
WebAuthUserContext.Builderinstance 
 
 -