Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

OAUTH2 Outbound Connection over MID Server with Resource Owner Password Credentials Grant Type

Meloper
Kilo Sage

Hi, 

this is my last try to solve this Puzzle 🙂
Please don't answer fast and "just" with a List of Community Articles.
There is now Article which is solving this Problem directly.

I get a Token from ADFS with an OUATH Connection using Grant Type: Resource Owner Password Credentials

With that i need to send Client ID, Client Secret, PW and Username over the MID Server.
I found an OOTB way to get the Token, but only if i click manually on the Related LINK get Oauth Token and only if i write Username and PW in the Fields of that popped up Window.

So i need to find a way to this in a Script or better in the Flow Rest Step.
But where can i do this in the Rest, where can i send Username and Password, i can select HTTP_CONNECTION Record and Connection_Alisa Record but there is not way to automate to get the Token with that Grand Type over the MID Server.

But lets say i would be able to get the Token, how can i use this token in the Rest Step (FLow Desinger) to get the Date from the Endpoint?

SO ne Question is new to the Yokohama Release

0 REPLIES 0