Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOGIN_EXEMPT_URLS not working for application's urls #318

Open
netvoip opened this issue Dec 15, 2023 · 6 comments
Open

LOGIN_EXEMPT_URLS not working for application's urls #318

netvoip opened this issue Dec 15, 2023 · 6 comments

Comments

@netvoip
Copy link

netvoip commented Dec 15, 2023

I have configured LOGIN_EXEMPT_URLS and it's working for admin page but for nested urls of application it isn't. What is the proper way to handle it?

AUTH_ADFS = {
    "LOGIN_EXEMPT_URLS": [
                          "admin/",
                          "chat/nosso/",
                          ],
}

urlpatterns = [
    path('chat/', include("chat.urls")),
]

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@JonasKs
Copy link
Member

JonasKs commented Dec 15, 2023

It's regex, so you could add a * or similar at the end.

E.g. apis/*

@netvoip
Copy link
Author

netvoip commented Dec 15, 2023

I tried with *, didn't help. Is there any way to debug such things?

@tim-schilling
Copy link
Member

Is there any way to debug such things?

One option is to add a breakpoint() near the code that handles this to understand what it's not being matched. You could also use an IDE's debugger.

@netvoip
Copy link
Author

netvoip commented Dec 16, 2023

I put breakpoint on view and didn't find any problem. Path is as expected and LOGIN_EXEMPT_URLS variable value contains it.
Also weird thing, I tried to open "mysite/oauth2/login_no_sso" page and it leads to ADFS login page.

@mgargiullo
Copy link

I'm now seeing this error as well

@JonasKs
Copy link
Member

JonasKs commented Jun 15, 2024

Please provide an example GitHub repo we can look at, or enough context for us to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants