AuthError - AuthLogout - AuthGeneric
Introduction and overview
These AuthStates are used as a helper AuthState. They do not process any authentication but generate (error) GUIs.
Description
The following table describes the characteristics of the AuthState.
| Topic | Description | 
|---|---|
| Class | ch.nevis.esauth.auth.states.standard.AuthErrorch.nevis.esauth.auth.states.standard.AuthGenericch.nevis.esauth.auth.states.standard.AuthLogout | 
| Logging | StdStates | 
| Auditing | none | 
| Properties | none | 
| Methods | process (all events) | 
| Input | none | 
| Transitions | default | 
| Output | Remark: The configured GUI descriptor is generated as a result of using this plug-in. | 
| Errors | none | 
| Notes | none | 
Example see /opt/nevisauth/template/conf/esauth4.xml |
AuthGeneric Examples
AuthGeneric does not have its own business logic and does not execute its own functionality. It is a helper method that can be used to set a response and execute subsequent actions, such as redirects.
Setting AuthDone with a redirect
The following snippet redirects to a selected destination after successful authentication.
<AuthState class="ch.nevis.esauth.auth.states.standard.AuthGeneric" final="true" name="<some_name>">
 <Response value="AUTH_DONE">
  <Arg name="nevis.transfer.type" value="redirect"/>
  <Arg name="nevis.transfer.destination" value="<url-or-path>"/>
 </Response>
</AuthState>
Setting AuthError with a redirect
In case of an AUTH_ERROR, you can also trigger a redirect using the following code snippet.
<AuthState class="ch.nevis.esauth.auth.states.standard.AuthGeneric" final="true" name="<some_name>">
 <Response value="AUTH_ERROR">
  <Arg name="nevis.transfer.type" value="redirect"/>
  <Arg name="nevis.transfer.destination" value="<url-or-path>"/>
 </Response>
</AuthState>