mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-26 07:25:51 +03:00
[GH-ISSUE #498] How Remote User Header works #368
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dharmendrakariya on GitHub (Apr 7, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/498
Hi,
I have set remote user header in my helm chart like below.
but when I use Postman to send this header(X-Custom-Claim-email: xyz@abc) its not giving the result as expected(not logged in).
when I check by using curl, its showing header is going
curl -H "X-Custom-Claim-email: abc@xyz.dev" https://healthchecks.xyz.dev -v@cuu508 commented on GitHub (Apr 7, 2021):
Are you running at least v1.18.0?
I started a dev server like so:
In Firefox, I installed a "Modify Header Value" addon, and configured it to add a X-Custom-Claim-Email header:
After doing that, I opened http://localhost:8080 and was logged in:
@cuu508 commented on GitHub (Apr 7, 2021):
Also works in Insomnia (I don't have Postman):
@dharmendrakariya commented on GitHub (Apr 7, 2021):
I am having
linuxserver/healthchecks: amd64-version-v1.16.0does it require at least v1.18.0?@dharmendrakariya commented on GitHub (Apr 7, 2021):
I checked with the latest version and its working fine thanks for the help:)
@mikhail5555 commented on GitHub (Sep 17, 2021):
I am sorry to reopen this issue, but i have been stuck with this problem for a while now.
I have been using
linuxserver/healthchecks: amd64-version-v1.22.0and it just am not able to get it working.I add
REMOTE_USER_HEADER = "HTTP_X_CUSTOM_CLAIM_EMAIL"to local_settings.py and send a request containing theX-Custom-Claim-Emailheader but it doesn't do anything and normal login also stops working.@cuu508 commented on GitHub (Sep 17, 2021):
Hi @Mikhail5555 – in settings.py, there is this bit:
So, if you pass REMOTE_USER_HEADER as environment variable, it adjusts AUTHENTICATION_BACKENDS. But if you define it in local_settings.py, it doesn't – because it imports
local_settings.pyat the very end.To fix, try adding this line to
local_settings.py:@mikhail5555 commented on GitHub (Sep 17, 2021):
Thank you! That indeed solved it!
I though i was going crazy, already spend so much time on trying to get this working. For some reason i though
local_settings.pyjust created an environment variable, but it overwrites thesettings.py