The following section describes how to implement common tasks using the Authentication service. These examples include:
Authentication
Extract Security Token
Obtaining the Primary Identity for a User
A user can have multiple identities. The following operation get the primary identity for a user. This generally the identity with which the user can log into the selfservice application.
Renew Security Token
The renewToken operation validates the token that is passed and generates a new token. Its important to refresh the token on each request so that the session does not time out.
Decrypting the Security Token
To obtain the user id that in the security token, we can decrypt it using the following:
Labels: