How do we convert Ansible Integration from Basic Auth to OAuth ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 10:20 PM
How do we convert Ansible Integration from Basic Auth to OAuth ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 10:57 PM
To convert Ansible Integration from Basic Auth to OAuth in ServiceNow, follow these steps:
1. **Create an OAuth API Endpoint in ServiceNow:**
- Navigate to System OAuth > Application Registry.
- Click on New and select Create an OAuth API endpoint for external clients.
- Fill in the necessary details like Name, Redirect URL, etc. and submit.
2. **Create a Client Secret:**
- After creating the OAuth API endpoint, a client ID and client secret will be generated.
- Store these details securely as they will be used in Ansible.
3. **Create an Access Token:**
- Navigate to System OAuth > Access Token.
- Click on New to create a new access token.
- Fill in the necessary details like Name, User, etc. and submit.
4. **Update Ansible Configuration:**
- In your Ansible configuration, replace the basic auth credentials with the OAuth credentials.
- The client ID and client secret generated in step 2 will be used here.
- The access token generated in step 3 will also be used here.
5. **Test the Integration:**
- After updating the Ansible configuration, test the integration to ensure everything is working as expected.
For asking ServiceNow-related questions try this :
For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.
Link - nowgpt.ai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 11:12 PM
Hi @VIKAS45
Please have a look on the below posts :
https://www.servicenow.com/community/itom-forum/integrationhub-ansible-tower-spoke-setup/m-p/894245
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.