Skip to content

REVERSE_PROXY_AUTHENTICATION - email and fullname not being applied #20949

Closed
@davama

Description

@davama

Description

Hello,

When a new user signs in to gitea via proxy, his profile settings are not complete.

Specifically, his "Full Name" and "Email" are empty or incorrect.

No issue with the username getting populated.

Hope i did this repo correctly.

Thanks!

Gitea Version

1.17.1 built with GNU Make 4.3, go1.18.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://pastebin.com/raw/vbF0AKXn

Screenshots

image

Git Version

2.31.1

Operating System

Rocky Linux release 8.6 (Green Obsidian)

How are you running Gitea?

Running gitea via docker.
below is docker-compose for gitea

  gitea:
    container_name: gitea
    image: gitea/gitea
    restart: unless-stopped
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 3000:3000
      - 2222:22
    depends_on:
      - db
      - ipv6nat
    environment:
     - GITEA__log__LEVEL=Trace
     - GITEA__database__DB_TYPE=postgres
     - GITEA__database__HOST="db:5432"
     - GITEA__database__NAME=gitea
     - GITEA__database__USER=gitea
     - GITEA__database__PASSWD=gitea
     - GITEA__server__DOMAIN=gitea.domain.net
     - GITEA__server__SSH_PORT=2222
     - GITEA__server__SSH_DOMAIN=gitea.domain.net
     - GITEA__server__ROOT_URL=https://gitea.domain.net
     - GITEA__service__DISABLE_REGISTRATION=false
     - GITEA__service__REQUIRE_SIGNIN_VIEW=true
     - GITEA__service__ENABLE_NOTIFY_MAIL=true
     - GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION=false
     - GITEA__service__ENABLE_CAPTCHA=false
     - GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION=true
     - GITEA__service__DEFAULT_ENABLE_TIMETRACKING=true
     - GITEA__service__NO_REPLY_ADDRESS=domain.net
     - GITEA__service__REGISTER_EMAIL_CONFIRM=true
     - GITEA__service__ENABLE_REVERSE_PROXY_AUTHENTICATION=true
     - GITEA__service__ENABLE_REVERSE_PROXY_AUTO_REGISTRATION=true
     - GITEA__security__PASSWORD_HASH_ALGO=argon2
     - GITEA__security__REVERSE_PROXY_AUTHENTICATION_USER=Remote-User
     - GITEA__security__REVERSE_PROXY_AUTHENTICATION_EMAIL=Remote-Email
     - GITEA__security__REVERSE_PROXY_AUTHENTICATION_FULL_NAME=Remote-Name
     - GITEA__security__REVERSE_PROXY_TRUSTED_PROXIES=172.20.0.0/16,fd00:dead:beef::/48
     - GITEA__mailer__ENABLED=true
     - GITEA__mailer__FROM=donotreply-gitea@domain.net
     - GITEA__mailer__MAILER_TYPE=smtp
     - GITEA__mailer__HOST="gitea-postfix:25"
     - GITEA__mailer__IS_TLS_ENABLED=false
     - GITEA__webhook__ALLOWED_HOST_LIST=webhook.domain.net
     - GITEA__webhook__SKIP_TLS_VERIFY=true
     - GITEA__admin__DISABLE_REGULAR_ORG_CREATION=true

Database

PostgreSQL

Activity

added this to the 1.17.2 milestone on Aug 25, 2022
KN4CK3R

KN4CK3R commented on Aug 25, 2022

@KN4CK3R
Member

Fullname support is in 1.18 (#20776)

davama

davama commented on Aug 25, 2022

@davama
Author

Thank you for the reply @KN4CK3R

guess thats half the battle.

The only question left is the email field.
Any input on that?

Thank you,
Dave

davama

davama commented on Aug 25, 2022

@davama
Author

Ok,

i think i figure out the issue. was missing

     - GITEA__service__ENABLE_REVERSE_PROXY_EMAIL=true

Now i see email field being applied when a new user signs in via proxy.

Thank you for the support!
looking forward to v1.18

Closing

locked and limited conversation to collaborators on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lunny@KN4CK3R@davama

        Issue actions

          REVERSE_PROXY_AUTHENTICATION - email and fullname not being applied · Issue #20949 · go-gitea/gitea