API-Tokens
For an external application to connect with Stages, it needs a way to authenticate itself. This can be done with API-tokens.
Server configuration / Setting the Token secret
Stages generates its API tokens on the basis of a unique secret that can only be set by the Stages administrator. This should be a random string value with at least 32 characters. This value should be stored in the file conf/secret.properties like this:
apitoken.secret = <value>
In the conf/config.xml file the following configuration property needs to be declared:
<property name="restapi.apitoken.secret" value="${apitoken.secret}"/>
After that, a service restart is necessary.
How to create an API token for SCIM
Users need to have READ and CREATE permissions on the API tokens permission domain to be allowed to create API tokens . In order to revoke API tokens, READ and DELETE permissions are required. Authorized Stages users can find and manage the API tokens under Administration > API Tokens.
Each token is identified by a label that is defined upon generation. The resulting token values will not be stored at the server but the server is able to identify a valid token by its value. Tokens become invalid after explicitly being revoked by the Stages administrator or after their expiry date has been reached.