Azure-Samples / ms-identity-python-webapp

A Python web application calling Microsoft graph that is secured using the Microsoft identity platform
MIT License
284 stars 135 forks source link

State parameter for multi tenant web app. #84

Closed chandraguptab closed 1 year ago

chandraguptab commented 2 years ago

Hi, my web app should send application-specific state parameter such as subdomain URL where the user originated, so that my middleware can redirect the user to the correct subdomain after sign-in.

How can I send the state parameter to https://login.microsoftonline.com/common?

I am refering to the Microsoft doc

rayluo commented 1 year ago

Thanks for your patience, @chandraguptab . It was not possible back then when you created this issue. But, since version 0.4+ of this sample, you can now set your own state by adding state="my_own_state", before this line. Cheers!