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

Custom authentication header #51

Closed
Izanagi52 opened this issue Apr 7, 2022 · 4 comments
Closed

Custom authentication header #51

Izanagi52 opened this issue Apr 7, 2022 · 4 comments
Assignees

Comments

@Izanagi52
Copy link

Hello,
Is it possible to add an option to set a custom authentication header instead of REMOTE_USER ?
For example, Authentik use another header : X-Authentik-Username
Thanks !

(Sorry for my bad English, it's not my native language)

@H2CK
Copy link
Owner

H2CK commented Apr 8, 2022

authnetik supports custom headers which allow to define the REMOTE_USER header required by this webtrees image.
See: https://goauthentik.io/docs/providers/proxy/custom_headers
Might it be a solution to just create a custom header as shown here? You just have to replace the X-App-User with REMOTE_USER.

In parallel I will check if the used header variable could be made configurable easily.

BTW: No need apologize for your English

@H2CK
Copy link
Owner

H2CK commented Apr 8, 2022

Implementation for stable Webtrees 2.0 branch: #52
Implementation for beta Webtrees 2.1 branch will follow.

Details on implementation:
You can set the used header with the environment variable -e HEADER_AUTH_VAR=YOUR-VAR-NAME

Updated image will be available soon on docker hub (v2.0.23-1).

@H2CK H2CK self-assigned this Apr 8, 2022
@H2CK
Copy link
Owner

H2CK commented Apr 8, 2022

Images for stable (latest) and beta with this extension are available at docker hub.

@Izanagi52
Copy link
Author

It's perfect!
Thanks!

And I have already seen the custom header in authentic, but I haven't managed to make it works...

Anyway, it's works perfectly for me, thanks for your works !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants