Skip to content

Encountering redirect loop with Cloudflare Access #1

@jeslinmx

Description

@jeslinmx

Hi there!

First of all, thank you for creating this app, it's one of the simplest SSO-type flows I've ever set up and it worked flawlessly for me when authenticating with an email belonging to an existing account.

The issue I encountered was when attempting to authenticate with an email that does not already have an account, while Override Frappe Login is enabled. ERPNext attempts to send me to the profile update page for the new user, but that page then redirects to itself.

Also note that ERPNext itself is protected by Cloudflare Access, however, from the network devtools, it appears that the redirect loop is simply (update profile page -> update profile page), rather than (update profile page -> jwt_auth configured login url (which is the Cloudflare Access login page) -> last page (which is the update profile page)).

I also attempted the same experiment with Override Frappe Login disabled, but then I do not get automatic logins, even for users that already exist.

I am inclined to believe that this is just operator error, as I have not used Frappe much yet, and also my JWT Auth Settings differs from what is described in the README (I do not have a Provider selection box, so I configured Cloudflare Access manually). I am installing jwt_auth from the develop branch, so I am not sure what I am doing wrongly here, but I would very much appreciate your guidance.

Thanks!

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