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

bug: #6989

Open
2 of 4 tasks
clho40 opened this issue Jan 27, 2025 · 1 comment
Open
2 of 4 tasks

bug: #6989

clho40 opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@clho40
Copy link

clho40 commented Jan 27, 2025

Describe the bug

I am using a self-hosted instance of Logto as an OIDC provider for my GetOutline application. My domain is configured with Cloudflare. When attempting to sign in via Logto, I successfully authenticate using my email and password. However, the GetOutline application fails to proceed with authentication and reports an error.

Upon checking the logs, I noticed that the response Outline received from Logto contained a Cloudflare challenge (HTML page), instead of the expected JSON response. This issue causes authentication to fail completely.

Expected behavior

Logto should:

  • Detect the Cloudflare challenge and handle it internally before responding to the OIDC client (Outline).
  • Ensure the application receives a valid JSON response for proper OIDC authentication.

How to reproduce?

  1. Configure a self-hosted Logto instance with a domain parked on Cloudflare.
  2. Configure a self-hosted GetOutline instance to use Logto as its OIDC provider.
  3. Attempt to log in to Outline using Logto for authentication.
  4. Authentication fails, and logs show that Outline received a Cloudflare challenge from Logto instead of the expected JSON.

Context

  • Logto Cloud
  • Self-hosted, Logto version = v1.23.0
    • Container (Docker image)
    • Raw Node.js

Screenshots

@clho40 clho40 added the bug Something isn't working label Jan 27, 2025
@wangsijie
Copy link
Contributor

Hi, the Cloudflare challenge is configured in your Cloudflare account, you can set some rules. I don't think that can be handled on Logto end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants