Closed andhrelja closed 4 years ago
The Microsoft auth window opens in a new window and communicates with the parent window via message passing. It is the parent page's responsibility to detect login status and handle where to redirect to.
If you would rather a single page flow and have the original page redirect to Microsoft and then when it is finished authenticating then that would be covered by #283.
The Microsoft auth window opens in a new window and communicates with the parent window via message passing. It is the parent page's responsibility to detect login status and handle where to redirect to.
This is exactly what I needed, thank you. It would be great to have these functionalities handled in the Django View for maximum configuration exploitation.
I would be happy to contribute if you see this useful.
Thanks!
I'm using Django 3.0.6 to build and app that requires Microsoft User login as default - internal company security process.
I wasn't getting a redirect after a successful login, all I got was the
auth_callback.html
that rendered:I forked your repository and would like to make a feature suggestion. I changed the view in
microsoft_auth/
, updated the return value forAuthenticateCallbackView.post()
to:This way I could specify my successful login redirect URL. I'm not sure if there's another way, but this was the first obvious thing for me.
I also created a new middleware function in order for Django to use the login URL as default
settings.LOGIN_URL
. If you are thinking of implementing such features, I'd be happy to contribute.