How to retrieve your Citrix CWSAuth bearer token
book
Article ID: CTX330675
calendar_today
Updated On:
Description
Certain Citrix Cloud/Citrix Virtual Apps and Desktop service PowerShell based automation requires access to CWSAuth bearer token.
Instructions
How to retrieve your CWSAuth bearer token?
Instructions:
Retrieve bearer token using Remote PowerShell SDK
- From a machine which has Remote PowerShell SDK installed, launch a new PowerShell session
- Use Get-XDAuthentication to login to your Citrix Cloud account.
- The bearer token is stored as the XDAuthToken variable. To retrieve it use the $GLOBAL:XDAuthToken command.
- The bearer token (starts after the ‘=’ character) is displayed in the PowerShell window.
Retrieve bearer token using a browser
- Login to your Citrix Cloud account.
- Using the browsers’ menu options, open developer tools.
- Navigate to Application Storage Local Storage.
- Locate the cloud.com URL (as in the screenshot below).
- Copy the value for cwcBearerToken.
Was this article helpful?
thumb_up
Yes
thumb_down
No