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 class
Provides a fluent-API (builder-style) pattern for creating newWebAuthUserContext
objectsstatic class
AJsonSerializer
andJsonDeserializer
implementation for serializing and de-serializingWebAuthUserContext
objects to / from JSON using GSON APIs. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebAuthUserContext.Builder
builder()
boolean
getIdp()
com.google.common.collect.ImmutableCollection<SecurityLevelConfig>
com.google.common.collect.ImmutableCollection<String>
int
hashCode()
toString()
-
Method Details
-
getIdp
- Returns:
- an
Optional
containing 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
Optional
containing theWebAuthUser
which 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
ImmutableCollection
ofSecurityLevelConfig
objects
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
- Returns:
- a new
WebAuthUserContext.Builder
instance
-