[Microsoft Login Connector] Tying to use this component to get access token

Forge Component
(10)
Published on 10 Oct (8 days ago) by Paul Davies
10 votes
Published on 10 Oct (8 days ago) by Paul Davies

Hi,

I am trying to use this component to get an OAuth access token to get authorization to access an API that is protected by oAuth.

Can someone please share steps on how can I fetch the access token using this component from my consuming app.


Thanks,

Satish

btw I am able to login using this component and need to figure out a way to get the token to be used to call an API.

Hi Satish,


Are you looking to do the below?


Paul Davies wrote:

Hi Satish,


Are you looking to do the below?


Thanks Paul for your reply.

Yes the diagram is pretty close on what I am trying to do.Just one change/clarification that "Other Microsoft App" is a REST API protected by Azure AD Oauth.

Please let me know if this is something possible and if yes what steps are needed to achieve that would be awesome.

Thanks,

Satish


Satish,

JUst wanted to check whether you had tried the action GetUserToken?


Satish,

Example code:

Passing the below to GetUserToken.