- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 02:23 PM
Hello Dear,
we have an anssible application installed in internal server and we want to get token from OAuth 2.0 Credential by clicking on "get OAuth Token" through mid server but it didn't work.
Regards,
Mehdi FARAJ
Solved! Go to Solution.
- Labels:
-
IntegrationHub
-
MID Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2021 02:20 AM
Hi Mehdi,
As far as I know, it isn't possible to do that through the MID Server. Take a look here: Outbound REST authentication | ServiceNow Docs
"OAuth 2.0 can be used only with messages that are not configured to use a MID Server. You cannot send OAuth 2.0 authenticated messages through a MID Server."
//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor's Guide To ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2021 02:20 AM
Hi Mehdi,
As far as I know, it isn't possible to do that through the MID Server. Take a look here: Outbound REST authentication | ServiceNow Docs
"OAuth 2.0 can be used only with messages that are not configured to use a MID Server. You cannot send OAuth 2.0 authenticated messages through a MID Server."
//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor's Guide To ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2021 08:46 AM
I realize you are just relaying information here but how would I go about securing a REST message made through a MID server? I have an internal application that authenticates tokens granted by an internal identity provider. Am I to understand that the MID server can not be used to make authenticated calls to an internal REST service?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 03:06 AM
Hello, did you ever find a solution to secure with OAuth2 an internal integration from ServiceNow to a another provider ? We are in the same situation.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 07:13 AM
Yes. What I did was to create some javascript functions to handle things like token acquisition, token caching, retrieving the client-id and clientSecret (stored in Service Now secrets) needed for token acquisition. Then I wrote another js function that wraps