Auth0 login page does not trigger in the browser

the first time when user login, it will be redirected from page to the login page of auth0, but after that, the auth0 page won’t be triggered again on that browser, for different users even. even after logged out from

res = requests.get(
                f"https://{settings.AUTH0_DOMAIN}/v2/logout?federated",
                headers={"content-type": "application/x-www-form-urlencoded"},
                data={"client_id": settings.AUTH0_CLIENT_ID},
            )

with 200 status code.
on a different browser or incognito page it will show the auth0 login page again.

the login is set up as:

from authlib.integrations.django_client import OAuth

oauth = OAuth()

oauth.register(
    "auth0",
    client_id=settings.AUTH0_CLIENT_ID,
    client_secret=settings.AUTH0_CLIENT_SECRET,
    client_kwargs={
        "scope": "openid profile email",
        "custom_login_page": ""
    },
    authorize_url=f"https://{settings.AUTH0_DOMAIN}/authorize",
    server_metadata_url=f"https://{settings.AUTH0_DOMAIN}/.well-known/openid-configuration",
)

def login(request):
     return oauth.auth0.authorize_redirect(
                      request, request.build_absolute_uri(reverse("auth0_callback"))
                  )

working now following the flask example.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.