Reset Search
 

 

Article

KB44801 - Realm-based Authentication for REST APIs Using curl.

« Go Back

Information

 
Last Modified Date5/13/2021 8:52 AM
Synopsis
Example curl command to user for Realm-based Authentication for REST APIs on the Pulse Connect Secure 
Problem or Goal
Cause
Solution
Command Looks like this: 
curl -i -u username:password -d '{"realm":"AdminRealmName"}' -H 'Content-Type: application/json' -X POST  https://ras.pulsesecure.net/
Where: 

username => Username of admin user
password =>  Password of admin user 
AdminRealmName => Admin Realm name 
ras.pulsesecure.net => PCS Host Name 


Result: 
 
HTTP/1.1 200 OK
Content-Type: application/json
Pragma: no-cache
Cache-Control: no-store
Expires: -1
Transfer-Encoding: chunked
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1
Strict-Transport-Security: max-age=31536000

{"api_key":"NzRhZTBiYzJiODM3MzFlMDAyMmI2YTExZmNhY2I4NWU="}

 
Related Links
Attachment 1 
Created Bys ramkumar

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255