Is there a way to configure an allow-list of email...
# all-things-deployment
h
Is there a way to configure an allow-list of email domains for the OIDC authentication (google in our case)?
c
Hi @high-hospital-85984, you can pass a regex definition to the OIDC authentication that defines which users should be allow by using the
AUTH_OIDC_USER_NAME_CLAIM_REGEX
environment variable in the
datahub-frontend
container. Does this help you?
h
Oh, interesting! Based on the description (
# The regex used to parse the DataHub username from the user name claim. Defaults to (.*) (all)
)
I did not understand to associate this with an allow list. So you are saying that if I define a regex that matches with my desired domains, the emails that fail to match will not be allowed in?
c
Yes, we are using the following regex to only allow access for a selected set of people:
((nameA|nameB)\@company\.com)
We use this for our dev environment You might give it a try and see if you can achieve your desired outcome 🙂
h
Awesome, thanks for the tip!
teamwork 1
Worked flawlessly! Thanks again!
c
Glad to hear, you are welcome 🙂