-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add external auth support #1039
Conversation
I'm still having issues with the notion that we need to do a POST for changing a language. But that's unrelated to this issue. |
The problem is #1025 and unrelated to this PR. I added CSRF_TRUSTED_ORIGINS to the settings on the test server and that fixes the problem. |
Checklist for QA:
I personally have no external authentication services running, so I can't actually test remote user support. What works:
What doesn't work:
|
This adds external auth support using Django remote user middleware. The header to be used can be configured using the REMOTE_USER_HEADER environment variable. The REMOTE_USER_FALLBACK variable can be set to enable the fallback to the normal model based auth backend.
I also changed the settings to only enable the OpenTelemetry middleware when SPAN_EXPORT_GRPC_ENDPOINT is set.
Fixes #963