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

Fix 'Fetch Failed' for next-auth when using OAuth behind proxy #12523

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rfrank
Copy link

@rfrank rfrank commented Dec 31, 2024

Without the NEXTAUTH_URL_INTERNAL env variable pointing to 'http://localhost:DEFAULT_HOARDER_PORT', Traefik (and possibly others) proxy report a fetch failed and refuse to show OAuth login button or allow OAuth login.

Details

Without the NEXTAUTH_URL_INTERNAL env variable pointing to 'http://localhost:DEFAULT_HOARDER_PORT', Traefik (and possibly others) proxy report a fetch failed and refuse to show OAuth login button or allow OAuth login.


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

Without the NEXTAUTH_URL_INTERNAL env variable pointing to 'http://localhost:DEFAULT_HOARDER_PORT', Traefik (and possibly others) proxy report a fetch failed and refuse to show OAuth login button or allow OAuth login.

Signed-off-by: Ryan Frank <[email protected]>
@rfrank rfrank requested a review from a team as a code owner December 31, 2024 22:44
Copy link

netlify bot commented Dec 31, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 0ef8ceb
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/677473b7c603c8000865af48
😎 Deploy Preview https://deploy-preview-12523--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 31, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 0ef8ceb
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/677473b73043530008aa02a5
😎 Deploy Preview https://deploy-preview-12523--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@4d62
Copy link
Contributor

4d62 commented Dec 31, 2024

Hi. Thanks for your contribution. I seem to be unable to find references to that env variable (even when searching the entire codebase). Would it be possible to say where you found this variable?
chrome_2THWFxFuoD

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

Successfully merging this pull request may close these issues.

2 participants