Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Validate Azure access token in Django Rest API and call graph API #716

Open
Shriyanshmit opened this issue Jun 30, 2024 · 1 comment

Comments

@Shriyanshmit
Copy link

Hello Team,

Form Angular application using MSAL, I login to azure and receive accessToken. Now to pull data from API I am passing access token as bearer in header of API.
Now please let me know how I can validate/authorize this token in backend Django rest api.

Do we have any in built function or module that I need to install and validate?
If not please let me know how I can validate/authorize my token and call graph api to get additional information of user.

@localden
Copy link
Collaborator

MSAL itself is a token acquisition library, not a token validation one, so you would need to look for alternative solution when it comes to token validation.

@rayluo is this something that PyJWT would fit the bill for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants