Skip to main content
Version: 4.25.x.x LTS

TokenAssemblerState

Introduction and overview

This AuthState can be used as a post-processing state to generate additional Nevis security tokens.

Description

The following table describes the characteristics of the AuthState.

TopicDescription
Classch.nevis.esauth.auth.states.sectoken.TokenAssemblerState
LoggingSecToken
Auditingnone
Propertiesassembler (string, -)Name, used as a reference to a configured <TokenAssembler>.
key (string, "sectoken")Name of the output argument to return the Nevis security token to the caller.
generateNow (boolean, false)If set to "true", tokens will be generated immediately, not just when the conversation ends. As a result, it is possible to generate multiple tokens per conversation in that case. The default is "false", which means that only one token is generated at the end of the request.
Methodsprocess (all events, execution is done in the finish step)
Inputnone
Transitionsdefault
Outputsectoken: Contains a single-line encoded Nevis security token as defined by the token assembler. See Token assemblers and keystores for further information.
Errors99: authentication error (internal problem due to misconfiguration)
Notesnone

Example

<AuthState name="AlternateTokenGenerator" class="ch.nevis.esauth.auth.states.sectoken.TokenAssemblerState">
<ResultCond name="default" next="AuthDone"/>
<Response value="AUTH_ERROR">
<Gui name="ErrorDialog" />
</Response>
<property name="assembler" value="SecondaryTokenAssembler"/>
<property name="key" value="secondary.sectoken"/>
</AuthState>