cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud Platform with Microsoft Azure B2c session ID capturing...?

former_member187227
Participant
0 Kudos

Hi All,

I want to capture session ID/Token from the microsoft azure, once it should validate the user in active directory and pass the ID's. If the user will be valid.

I can get the Token's and pass into my UI5 application to populate the data, is that possible. Kindly help me with this.

I tried below code:

function callurl1(){ var settings = { "async": true, "crossDomain": true, "url": "https://login.microsoftonline.com/saurabhpersonalad.onmicrosoft.com/oauth2/token", "method": "POST", "headers": { "content-type": "application/x-www-form-urlencoded", "cache-control": "no-cache", "Access-Control-Allow-Origin":"*" }, "data": { "grant_type": "client_credentials", "client_id": "xxxxxx-902d-48ab-a69b-f5b9b6ba31c6", "client_secret": "H1'cd5RzMs45p%xxxxxx", "resource": "https://xxx.onmicrosoft.com/Customerportal" } } $.support.cors = true; $.ajax(settings).done(function (response) { debugger; alert(response); }); };

But i didn't get any response in my code.

Accepted Solutions (0)

Answers (0)