Skip to content

flask login loop #161

@krsfrodaslz

Description

@krsfrodaslz

Hi, I'm running into a login loop after following the instructions. After being redirected to the homepage (after successfully logged in), I was asked to login again.

Here's how it behaves currently:

  1. Access the homepage of my site. Redirected to login.microsoftonline.com.
  2. /.auth/login/aad/callback (the redirect URL I set) gets called, but redirected to /.auth/login/done. This got me confused. Where is the login/done endpoint registered? I couldn't find it in repo Azure-Samples/ms-identity-python. I checked the code. It's supposed to be redirected to the next_link (aka the homepage) directly, right?
  3. The login/done page tells me I've successfully signed in. See the screenshot below. Then follow the link to the homepage.
  4. The server returns OK 200, not 302 this time. But still the page is refreshed to login.microsoftonline.com and asks me to pick up an account again.

What I'm missing? I'm testing this directly on Azure. My setup is flask + uWSGI + Nginx.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions