Slack Spoke integration error message 401 (SOLVED)

Antonio42
Kilo Guru

Team, after set up the connection and credencial from servicenow and also set up scope entries from slack workspace I got an error message 401 as not authorized trying to retrieve the token. I double checked the client id and client secret but no luck so far. Any tip or anyone who already set up this?

1 ACCEPTED SOLUTION

Antonio42
Kilo Guru

Team, the Token URL mentioned in the Servicenow documentation is not correct. Find below the correction that needs to be done, I have already sent to Servicenow a feedback:

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/integrationhub-store-spokes/task/set-up-slack.html#set-up-slack

Wrong: https://slack.com/api/oauth_access

Correct: https://slack.com/api/oauth.access

View solution in original post

7 REPLIES 7

Antonio42
Kilo Guru

Team, the Token URL mentioned in the Servicenow documentation is not correct. Find below the correction that needs to be done, I have already sent to Servicenow a feedback:

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/integrationhub-store-spokes/task/set-up-slack.html#set-up-slack

Wrong: https://slack.com/api/oauth_access

Correct: https://slack.com/api/oauth.access

Antonio

 

I am able to get the token correctly bit that expires in 30 mins. Do you know how to regenerate the token once it expires?

 

Thanks

Aman

Hey Aman, try to go to Manage Token and change the expire date there.

Thanks Antonio.

That is what i have currently but wanted to check if there is a way to regenerate the token programatically. I saw that there is a way to get these using refresh tokens but i dont see a way to get refresh tokens from Slack.

 

Thanks

Aman