getredash/redash

Allow name and email for user added by Remote User Auth to be different

Open

#1.648 aberto em 2 de mar. de 2017

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Python (4.236 forks)batch import
Backendenhancementhelp wanted

Métricas do repositório

Stars
 (24.845 stars)
Métricas de merge de PR
 (Mesclagem média 9d 5h) (3 fundiu PRs em 30d)

Description

Issue Summary

I'm trying to use Active Directory LDAP through remote_user_auth module. Currently there is no way to set different redash user name from mail address. So now my redash user accounts have mail address for both name and mail. Also, if user logs in with just the username or username@domain, the mail address is not correct and the alarm mail won't work.

Technical details:

To solve this, I guess we have to add another environment variable besides REMOTE_USER_HEADER.

Does it make sense to you to add variable like REMOTE_MAIL_HEADER, and use it like

name = REMOTE_USER_HEADER
email = REMOTE_MAIL_HEADER || REMOTE_USER_HEADER
create_and_login_user(current_org, name, email)

instead of

email = REMOTE_USER_HEADER
create_and_login_user(current_org, email, email)
  • Redash Version:Current Head
  • Browser/OS:Chrome
  • How did you install Redash:Docker

Guia do colaborador