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

connector/oidc: fix hosted domain support. #1000

Merged
merged 1 commit into from
Jul 31, 2017

Conversation

rithujohn191
Copy link
Contributor

fixes #999

@rithujohn191 rithujohn191 requested a review from ericchiang July 21, 2017 22:50
@alonl
Copy link

alonl commented Jul 22, 2017

May also fix the example:
#974 (comment)

:)

@ericchiang
Copy link
Contributor

So quick thought on this.

The hosted domain concept is Google specific, not related to OpenID Connect. There are a ton of features that have been requested that apply to Google and aren't applicable to general oidc providers (e.g. groups support). Why arent we just split this into a unique "google" connector instead of pushing Google features into the oidc connector?

@rithujohn191
Copy link
Contributor Author

Created a new issue for this (#1001). Closing out this PR

@rithujohn191 rithujohn191 deleted the fix-hosted-domain branch July 24, 2017 20:39
@alonl
Copy link

alonl commented Jul 24, 2017

But... This feature is still broken... Better remove it then, I believe. :)
@ericchiang
@rithujohn191

@rithujohn191 rithujohn191 restored the fix-hosted-domain branch July 24, 2017 22:58
@rithujohn191
Copy link
Contributor Author

New plan....going to fix this feature for now and then in the next release pull it out into its own Google connector :)

Copy link

@alonl alonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor fix

@@ -67,7 +67,7 @@ connectors:
# clientID: $GOOGLE_CLIENT_ID
# clientSecret: $GOOGLE_CLIENT_SECRET
# redirectURI: http://127.0.0.1:5556/dex/callback
# hostedDomain: $GOOGLE_HOSTED_DOMAIN
# hostedDomains: $GOOGLE_HOSTED_DOMAIN
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an array. I think it should be:

hostedDomains:
- $GOOGLE_HOSTED_DOMAIN

@rithujohn191
Copy link
Contributor Author

@ericchiang if this looks ok could you approve the PR? Thanks

Copy link
Contributor

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rithujohn191 rithujohn191 merged commit 05e8d50 into dexidp:master Jul 31, 2017
@rithujohn191 rithujohn191 deleted the fix-hosted-domain branch July 31, 2017 20:29
@lamdor
Copy link

lamdor commented Aug 7, 2017

@rithujohn191 I was just wondering how soon a release could be cut with this in it? I have a need to restrict logins to a certain gsuite domain. Thanks!

@lamdor
Copy link

lamdor commented Aug 7, 2017

@alonl This PR does check the hd claim in the id token: https://github.com/coreos/dex/pull/1000/files#diff-dbaa70d509cfdb00b729984f27415946R201 So it would validate for those configured hosted domains.

@alonl
Copy link

alonl commented Aug 7, 2017

Oh, you're right. That's just the issue I reported myself. Sorry for the confusion. I deleted my previous comments to avoid confusing others.

mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
connector/oidc: fix hosted domain support.
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.

Bugs in Google OIDC HD (Hosted Domain) claim
4 participants