Hi all,
Is there a means to move a created Token from a staging environment to a Production?
It would be nice to have a means to reuse the same token.
This would allow no- to minimum changes to any tool that interacts with the user definable API.
For example we could simply redirect when something is released.
Hi Mieke,
There is nothing built-in since DataMiner does not know the actual secret of the token (only a secure hash). You can however manually create another token on the production system and set the secret to the one you used on the staging environment.
On this docs page, you can find the info on how you can create a token in a script: https://docs.dataminer.services/user-guide/Advanced_Modules/User%20Defined%20APIs/Defining_an_API/UD_APIs_Creating_in_code.html#creating-a-token
Instead of generating a new secret using the 'ApiTokenSecretGenerator', you can just assign the staging token as a string.