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

185
Views
passport-azure-ad AzureAD: Bearer Strategy, validation of token

I have implemented SPA and express.js WEB Api applications, SPA authenticates using msal.js V2 and acquires access_token including roles: [], and spc: [] containing correct roles and scopes.

WEB Api is called using access_token received, it gets decoded at API side using passport-azure-ad library initialised using BearerStrategy. It extracts information from the token, but finally throws error: authentication failed due to: In Strategy.prototype.jwtVerify: none of the scopes 'Execute.Api' in token is accepted, where Execute.Api is my custom scope.

Would be great if someone help me to resolve this issue, project is at critical stage because of this.

about 4 years ago · Juan Pablo Isaza
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!