Skip to content

[WIP] PreferredEmailDomain GitHub connector Config option #1298

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

Closed
wants to merge 1 commit into from

Conversation

tburko
Copy link
Contributor

@tburko tburko commented Sep 11, 2018

Considering implementing this. Will help identify users by verified company email without asking them to mark it as primary.

Sample config:

-connectors:
  - type: github
    id: github
    name: GitHub
    config:
      clientID: 'REDACTED'
      clientSecret: 'REDACTED'
      redirectURI: 'https://dex.acme.org/dex/callback'
      orgs:
        - name: acme
      preferredEmailDomain: 'acme.org'

…users by company email without asking them to mark it as primary
@ericchiang
Copy link
Contributor

I like it. Feel free to write up the implementation.

@ericchiang
Copy link
Contributor

(We also might require that the user has that domain)

@ericchiang
Copy link
Contributor

Actually this should probably just be a global thing. #66

So the config would have something like:

userFilters:
  requiredEmailDomains:
  - "@foo.com"
  - "@example.com"

@tburko
Copy link
Contributor Author

tburko commented Sep 13, 2018

Actually this should probably just be a global thing. #66

So the config would have something like:

userFilters:
  requiredEmailDomains:
  - "@foo.com"
  - "@example.com"

Hmm but that steps into authorization domain, I thought Dex was supposed to deal with identity. And a bigger change, if you want my help with this I would prefer to hear your thoughts on implementation first, we seem to have different approaches to structuring code :).

@ericchiang
Copy link
Contributor

Hmm but that steps into authorization domain, I thought Dex was supposed to deal with identity. And a bigger change, if you want my help with this I would prefer to hear your thoughts on implementation first, we seem to have different approaches to structuring code :).

Sorry, I realized I'm getting these mixing up concepts. Yes, preferred email sounds good without my last suggestion :)

@povils
Copy link

povils commented Oct 25, 2020

Any updates?

@nabokihms
Copy link
Member

Closed by #2740

@nabokihms nabokihms closed this Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants