# AWX Generating Access Token with aws\_session\_id cookie

**URL:** <https://forum.ansible.com/t/awx-generating-access-token-with-aws-session-id-cookie/37809>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 24, 2023, 1:23pm UTC](https://forum.ansible.com/t/awx-generating-access-token-with-aws-session-id-cookie/37809 "2023-03-24T13:23:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronald\_Suplina](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@Ronald\_Suplina](https://forum.ansible.com/u/Ronald_Suplina)\
**Post date:** [March 24, 2023, 1:23pm UTC](https://forum.ansible.com/t/awx-generating-access-token-with-aws-session-id-cookie/37809/1 "2023-03-24T13:23:37Z")

</div>

Hello,  
We have an OKTA with configured SAML for AWX, while our sign-in within a browser is working normally, we can log normally.  
I wonder if there is a way to generate ACCESS Token for a SAML social user on AWX.  
I have a script which does similar as whole SAML PROCESS and on last step the “SSO/COMPLETE/SAML” i get “awx\_session\_id” and “csrf\_token” cookies is there a way after it to generate Access Token via rest API.

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [March 31, 2023, 5:25pm UTC](https://forum.ansible.com/t/awx-generating-access-token-with-aws-session-id-cookie/37809/2 "2023-03-31T17:25:24Z")

</div>

Generally, the access tokens are not meant to be used in conjunction with SAML, as these tokens are long lived and users would essentially be bypassing SAML during that window of time.

AWX Team
