Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

332
Views
OpenId Connect, Query Microsoft Graph

We have a .Net Web Application that uses Single Sign On implemented by OpenID Connect to create an ID token and log a user in. Specifically Microsoft.Owin.Security.OpenIdConnect and Microsoft.IdentityModel.Protocols.OpenIdConnect

I now have a requirement to query Microsoft Graph API via JavaScript.

In order for me to query Graph API I assume I need an Access token (plus I want to be mindful of token expiry and refresh).

What is the recommended approach to get from Single Sign On producing an ID token on the backend to querying Microsoft Graph API via JavaScript on the front end? Ideally I wouldn't put an proxy/pass-through API inbetween to get an Auth Token on my behalf.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I figured it out.

The main application uses OpenID Connect to establish an ID Token. I then use MSAL.js to silently login utilizing my already established SSO session.

This is the sample I followed:

https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/VanillaJSTestApp2.0/app/ssoSilent

I then can acquire an access token to query Graph API.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!