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

Allow the "google" connector to work without a service account #1720

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

candlerb
Copy link
Contributor

Fixes #1718


The code did originally have a check for empty adminEmail and empty serviceAccountFilePath, but didn't check this when loading the config - so tried to open an empty filename.

With this fix, token refresh works when using the "google" connector instead of the "oidc" connector to talk to Google, even without a hosted domain.

@candlerb
Copy link
Contributor Author

I just noticed this is effectively the same as #1663.

Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

LGTM. I'm happy with this. It does overlap with #1663 but since this is ready to go, I'm tempted to merge this in favour of that (normally the first person to tackle the issue I would give preference to)

@reasonerjt Are you happy for me to merge this over your PR? Seems to solve your issue

@threeseed
Copy link

@JoelSpeed .. Any chance we can get this merged ?

@JoelSpeed
Copy link
Contributor

@reasonerjt Are you happy for me to merge this over your PR? Seems to solve your issue. If I do not get a response within a week, I'll merge this

@nadenf I'll give them another week to respond, then merge if I get no response

@coderanger
Copy link

Just to throw another log on the fire, GKE now supports pod-level ambient credentials. This is a good fix to start with but long-term this should probably delegate creds loading behavior to the Google SDK.

@JoelSpeed
Copy link
Contributor

A week has passed, merging this

Just to throw another log on the fire, GKE now supports pod-level ambient credentials. This is a good fix to start with but long-term this should probably delegate creds loading behavior to the Google SDK.

If that's now a thing, then definitely, is this GA and documented do you know? I haven't seen it

@JoelSpeed JoelSpeed merged commit 9d7e472 into dexidp:master Jun 19, 2020
xtremerui pushed a commit to concourse/dex that referenced this pull request Oct 5, 2020
The official docker release for this release can be pulled from

    dexidp/dex:v2.25.0

**Features:**

- Move the API package to a separate module (dexidp#1741, @sagikazarmark)
- OAuth2 Device Authorization Grant (dexidp#1706, @justin-slowik)
- Support username, email and groups claim in OIDC connector (dexidp#1634, @xtremerui)

**Bugfixes:**

- Add offline_access scope in microsoft connector, if required (dexidp#1441, @jimmythedog)
- Allow the google connector to work without a service account (dexidp#1720, @candlerb)

**Minor changes:**

- Remove vendor (finally) (dexidp#1745, @sagikazarmark)
- Fix the LDAP example (dexidp#1762, @heidemn-faro)
- Relocate the example app (dexidp#1764, @sagikazarmark)
xtremerui pushed a commit to concourse/dex that referenced this pull request Nov 5, 2020
The official docker release for this release can be pulled from

    dexidp/dex:v2.25.0

**Features:**

- Move the API package to a separate module (dexidp#1741, @sagikazarmark)
- OAuth2 Device Authorization Grant (dexidp#1706, @justin-slowik)
- Support username, email and groups claim in OIDC connector (dexidp#1634, @xtremerui)

**Bugfixes:**

- Add offline_access scope in microsoft connector, if required (dexidp#1441, @jimmythedog)
- Allow the google connector to work without a service account (dexidp#1720, @candlerb)

**Minor changes:**

- Remove vendor (finally) (dexidp#1745, @sagikazarmark)
- Fix the LDAP example (dexidp#1762, @heidemn-faro)
- Relocate the example app (dexidp#1764, @sagikazarmark)
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.

Google refresh token: 'failed to refresh identity: missing "name" claim'
4 participants