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

Add support for authentication based on reverse proxy email #19949

Merged
merged 4 commits into from
Sep 28, 2022

Commits on Jun 12, 2022

  1. Add support for authentication based on reverse proxy email.

    This is useful in scenarios where the reverse proxy may have knowledge
    of user emails, but does not know about usernames set on gitea,
    as in the feature request in go-gitea#19948.
    
    I tested this by setting up a fresh gitea install with one user `mhl`
    and email `[email protected]`. I then created a private repo,
    and configured gitea to allow reverse proxy authentication.
    
    Via curl I confirmed that these two requests now work and return 200s:
    
    curl http://localhost:3000/mhl/private -I --header "X-Webauth-User: mhl"
    curl http://localhost:3000/mhl/private -I --header "X-Webauth-Email: [email protected]"
    
    Before this commit, the second request did not work.
    
    I also verified that if I provide an invalid email or user,
    a 404 is correctly returned as before
    
    Closes go-gitea#19948
    mhlakhani committed Jun 12, 2022
    Configuration menu
    Copy the full SHA
    4f6f95e View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. Configuration menu
    Copy the full SHA
    c2f6275 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. Merge branch 'main' into main

    lunny authored Sep 19, 2022
    Configuration menu
    Copy the full SHA
    a8731e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

  1. Merge branch 'main' into main

    6543 authored Sep 27, 2022
    Configuration menu
    Copy the full SHA
    e0c20cd View commit details
    Browse the repository at this point in the history