GetAuthTokenUser
Gets UserName from a token
Gets the UserName from an AuthToken
GET
https://signup.trialkey.ca/api/v2/GetAuthTokenUser
This endpoint allows a UserName to be looked up from an AuthToken. This can be used when using Quick Links to have a user log into your system via the TrialKey provided login page with your branding. Upon success, the system will redirect the user to the page you have specified in the dashboard along with the AuthToken as a query param. You can then use this AuthToken to ask TrialKey to validate it to find out who the user is via the GetAuthTokenUser() API, and then match them with your user profile in your own database/settings store.
Example URL:
https://www.trialkey.ca/api/v2/GetAuthTokenUser?AuthToken=<AUTH_TOKEN>&AccountAPIToken=<ACCOUNT_API_TOKEN>&Domain=mywebsite.com
Query Parameters
Domain*
String
Your account domain (i.e. the mywebsite.com part of www.mywebsite.com)
AuthToken*
String
The AuthToken acquired from calling the DoLogin() API.
AccountAPIToken*
String
Your account API token from the profile screen in the TrialKey API dashboard. This key should be kept secret since it allows you to perform actions on your users such as deleting or modify them or their products and licenses.
Return Value: If any of the required parameters are missing, the call will fail with a 404 HTTP status code.
If the call succeeds, it will return the UserName as a string that corresponds to the AuthToken
param.
Last updated