Hi,
I need to Obtain the JWT token using the Token request URL - https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token and needs to pass this Token as an input parameter to All my Registered API Endpoints. I am thinking of creating Swagger for this Token Request, Calling this API to obtain the Token --->And then passing this Token as a input parameter while calling the actual API. Anyone have created the Swagger for the Azure Token Endpoint https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token ?
Subramanian - Were you able to ever get this swagger created? I have have been able to get the token, but my problem is the next API call Graph, where I am unable to pass the retrieved token as an Auth Header. Any update on this would be greatly appreciated.
ION will do Token Authorization in backend. So you can proceed to step 2 ( user create, update, etc.,) by providing Authentication parameters in Target endpoint section.
I have used OAuth2 authentication for Azure and was able to complete action successfully.
Hi Brandon,
I followed the below steps,
1) In the Document flow, i am adding the Workflow step where i am calling the 'JWT Token EndPoint' IONAPI inside the Workflow, Getting the token and enriching the BOD with the Token.
2) In the next step, i am adding ION API Connection Point where i am calling the Target API, mapping the Token to the 'Authorization Header' from the Enriched BOD and the sending the BOD to the Target API. As i still have the Token as an element in my BOD, I am adding the EndPoint policy against the API in order to remove the token Element before sending the BOD to the Target.
I have been able to complete step #1 using the client_credentials grant type, from an ION API call in a workflow. I am then trying to pass that token as a parameter: Header- Authorization: Bearer [token], to the next ION API step in the workflow, which is just a GET against the planner endpoint. In your case, you are using a BOD, but I am simply trying to call a GET MS Graph API to retrieve json data and map to workflow parameters for next steps.It seems like I am unable to override the Authorization header. Is that possible without a BOD, using policy?
Using this path, I was able to use Target Endpoint security to get the bearer token for each call to graph. Thank you Sethu for the guidance and screenshots!
May I know the details, How to use Target Endpoint security to get the bearer token for each call. I have same requirement. Please see below URL.
https://community.infor.com/infor-ion/f/ion-apis/26234/pass-refresh-token-as-a-header-authorization
Thank you
Priyantha
Hello Priyantha - I used the JWT Target Authentication option. This would have the session get the OAuth token and then pass the authorization header, with the Bearer Token.