curl --location '<weguard_server_base_url>/v1/sso/links' \
--header 'WeGuard-API-Key: bfbecc18a4684497b83ad72cb962e1fd' \
--header 'Content-Type: application/json' \
--data-raw '{
"redirect": true,
"expiryRedirectURL": "
<your_website_url>",
"username": "<userName/Email>"
}'
Sample Response:{
"headers": {},
"body": {
"ssoLink":
"https://weguard.ai/#/login?sso=fr4353893kdffkk
" },
"statusCodeValue": 200,
"statusCode":
"OK"}
- Utilize the provided API (POST), ensuring that the API key is included in the headers. The API key can be obtained from the WeGuard console. In the request payload, include the parameters
expiryRedirectUrl
and userName
. This request will generate an ssoLink
, which contains a token appended to the URL. Note that this token is valid for 10 minutes.
- Use the generated
ssoLink
to redirect users to Dashboard page without logging into WeGuard Console.
We hope this article was useful. Thank you for reading.
For more WeGuard insights, please explore the Visual Knowledge-base Series
For more details, please visit https://www.weguard.com
If you need any help on this, do call up WeGuard Support at +1(737) 931-1410 Ext. 102 or contact WeGuard Support Email or Initiate Chat