Skip to content

Add support for reverse proxy header authentication with email alone #19948

Closed
@mhlakhani

Description

@mhlakhani

Feature Description

Hi!

I saw it's possible to authenticate using a reverse proxy by sending an X-Webauth-User header. Optionally (if enabled in settings), if the X-Webauth-Email header is provided a user is also auto-registered.

For my internal setup at home, my reverse proxy does not have access to gitea usernames, but the sign in system has access to emails. Would it be possible to extend the code to allow authenticating just via the contents of X-Webauth-Email?

I'm happy to try and put up a PR myself if there are no objections to this feature.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions