Interface WebAuthStrategyAdapter
- 
- All Superinterfaces:
- AuthAdapter
 
 public interface WebAuthStrategyAdapter extends AuthAdapter Adapter interface forWebAuthStrategies
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WebAuthStrategycreate(WebAuthStrategyContext context)Create aWebAuthStrategyinstance based on the given context and config.UserAttributeMapperConfigdefaultUserAttributeMapperConfig()java.lang.StringgetDescription()java.lang.StringgetName()WebAuthStrategyConfigimportProviderMetadata(java.io.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).java.lang.StringparseState(HttpRequest httpRequest)Parse the state string from the incoming Http Request- 
Methods inherited from interface com.inductiveautomation.ignition.gateway.auth.adapter.AuthAdaptergetType
 
- 
 
- 
- 
- 
Method Detail- 
getName@Nonnull java.lang.String getName() - Returns:
- this WebAuthStrategyAdapter'shuman-readable name
 
 - 
getDescription@Nonnull java.lang.String 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 a- WebAuthStrategyinstance for the given context and config
 
 - 
parseState@Nonnull java.lang.String parseState(@Nonnull HttpRequest httpRequest) throws WebAuthStrategyAdapterExceptionParse 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 java.io.Reader providerMetadataReader) throws WebAuthStrategyAdapterException Import provider metadata and parse into aWebAuthStrategyConfig- Parameters:
- providerMetadataReader- the- Readerwhich provides the provider metadata
- Returns:
- the parsed WebAuthStrategyConfig
- Throws:
- WebAuthStrategyAdapterException- if there is an unexpected problem importing provider metadata
 
 - 
defaultUserAttributeMapperConfig@Nonnull UserAttributeMapperConfig defaultUserAttributeMapperConfig() - Returns:
- the default UserAttributeMapperConfigfor thisWebAuthStrategyAdapter
 
 - 
onConfigChange@Nonnull com.inductiveautomation.ignition.common.gson.JsonElement onConfigChange(@Nonnull com.inductiveautomation.ignition.common.gson.JsonElement config) throws WebAuthStrategyAdapterExceptionCalled 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
 
 
- 
 
-