Interface WebAuthStrategyAdapter
- All Superinterfaces:
AuthAdapter
Adapter interface for
WebAuthStrategies-
Method Summary
Modifier and TypeMethodDescriptioncreate(WebAuthStrategyContext context) Create aWebAuthStrategyinstance based on the given context and config.getName()importProviderMetadata(Reader providerMetadataReader) Import provider metadata and parse into aWebAuthStrategyConfigcom.inductiveautomation.ignition.common.gson.JsonElementonConfigChange(com.inductiveautomation.ignition.common.gson.JsonElement config) Called any time aWebAuthStrategyConfig'sconfig is changed (whether an existing config was updated or a new config was created).parseState(HttpRequest httpRequest) Parse the state string from the incoming Http RequestMethods inherited from interface com.inductiveautomation.ignition.gateway.auth.adapter.AuthAdapter
getType
-
Method Details
-
getName
- Returns:
- this
WebAuthStrategyAdapter'shuman-readable name
-
getDescription
- Returns:
- this
WebAuthStrategyAdapter'shuman-readable description
-
create
@Nonnull WebAuthStrategy create(@Nonnull WebAuthStrategyContext context) throws WebAuthStrategyAdapterException Create aWebAuthStrategyinstance based on the given context and config.- Parameters:
context- the context in which this web auth strategy is created- Returns:
- The
WebAuthStrategyinstance created for the given context and config - Throws:
WebAuthStrategyAdapterException- if there was a problem creating aWebAuthStrategyinstance for the given context and config
-
parseState
Parse the state string from the incoming Http Request- Parameters:
httpRequest- The incoming Http Request- Returns:
- the state string parsed from the incoming Http Request
- Throws:
WebAuthStrategyAdapterException- if there is a problem parsing the state string from the incoming Http Request
-
importProviderMetadata
@Nonnull WebAuthStrategyConfig importProviderMetadata(@Nonnull Reader providerMetadataReader) throws WebAuthStrategyAdapterException Import provider metadata and parse into aWebAuthStrategyConfig- Parameters:
providerMetadataReader- theReaderwhich provides the provider metadata- Returns:
- the parsed
WebAuthStrategyConfig - Throws:
WebAuthStrategyAdapterException- if there is an unexpected problem importing provider metadata
-
defaultUserAttributeMapperConfig
- Returns:
- the default
UserAttributeMapperConfigfor thisWebAuthStrategyAdapter
-
onConfigChange
@Nonnull com.inductiveautomation.ignition.common.gson.JsonElement onConfigChange(@Nonnull com.inductiveautomation.ignition.common.gson.JsonElement config) throws WebAuthStrategyAdapterException Called any time a
WebAuthStrategyConfig'sconfig is changed (whether an existing config was updated or a new config was created). TheWebAuthStrategyAdapterhas the opportunity to:- Check if the config properly de-serializes into the expected shape
- Transform the config in any way before it is persisted and used by the system
- Parameters:
config- the new or changed config- Returns:
- the transformed config
- Throws:
WebAuthStrategyAdapterException- if there is an unexpected problem processing the config change
-