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

Can’t log in if another auth layer is used (Cloudflare Access) #49

Open
jbschooley opened this issue Jul 12, 2023 · 7 comments
Open

Comments

@jbschooley
Copy link

Describe the bug
If I enable Cloudflare Access as an additional layer of security on my instance, the app says it can’t connect to the server. Because the app just shows the web interface, I would expect it to show my cloudflare login screen and allow me to log in before displaying the Traccar interface.

To Reproduce
Steps to reproduce the behavior:

  1. Make your instance publicly accessible using Cloudflare DNS
  2. In the cloudflare zero trust panel, set up your subdomain as a self hosted application and set up auth
  3. Open Traccar in a browser. You’ll see the cloudflare login screen first, after which the Traccar login screen will show.

Expected behavior
The app should show the extra login screen, rather than complain that the site doesn’t look like Traccar and refuse to show anything

Smartphone (please complete the following information):

  • Device: iPhone 13
  • OS: iOS 16.5.1
@tananaev
Copy link
Member

Doesn't sound like a bug to me. More of a request to support whatever Cloudflare is doing.

@jbschooley
Copy link
Author

What’s it doing to check that the url you put in is actually a Traccar instance?

@tananaev
Copy link
Member

It checks the server API endpoint.

@jbschooley
Copy link
Author

Would it be possible to still allow the page to be viewed if that check fails, and check again on the next page load?

@tananaev
Copy link
Member

What do you mean by possible? It's not how it works now, but anything is possible to implement.

@jbschooley
Copy link
Author

Possible as in doable without major refactoring or something else that would take far too much time. I don’t know jack about iOS development otherwise I’d take a look at it.

Also whether it’s worth it at all. I’m not sure how many other users are using Traccar with an added security layer like Cloudflare Access. Or would like to host it publicly, but are worried about incident response in case of another log4j style zero day and would rather leave that part up to cloudflare.

@tananaev
Copy link
Member

You're the first person so for who has this issue, so we definitely won't implement it ourselves until there's enough interest.

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

2 participants