Skip to content

State missing from auth_code_flow error #378

Answered by rayluo
christokritz asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for bringing that Microsoft Graph Python tutorial to our attention.

MSAL team maintains a self-contained web app sample, currently written for Flask (rather than Django which is being used in the aforementioned Graph tutorial). You may try derive your project from this sample and see how it works.

Regarding to that Graph tutorial, my hypothesis is it purges the state from session over-aggressively. You can try change the pop in this part to get, and see how it goes.

Please let us know your test result. If it works, we will go back to fix that tutorial, and/or figure out a better way to prevent this.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dlooto
Comment options

Answer selected by rayluo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rayluo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #375 on July 07, 2021 16:43.