Setting up ansible spoke on integration hub with an awx server

john54
Kilo Explorer

I am trying to setup the ansible spoke in integraration hub using Oauth2 authorization. However when I try to get an authorization token I get "http error 401 unauthorized" as the returned message. 

I followed this documentation, https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/integrationhub-store-..., is there anything special I need to do on my awx server? I am using the system admin credentials to authorize the token.

Thanks for the help, 

John

3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Check system logs for additional errors. Is the Token URL and profile correct?


Thanks,
Ashutosh

Hi, 

There are no additional errors in the logs and the token url is correct. By profile do you mean the OAuth Entity Profile? For that I have the correct grant type and added the write scope. 

Is there something that needs to be done on my awx server besides allowing external users to create oauth 2 tokens?

Thanks again

HI,

I am not sure what rights the integration user has. oAuth table right access is required to allow to refresh and read the token as well.


Thanks,
Ashtosh