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

Add support for service accounts to provider auth #690

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bobbyiliev
Copy link
Contributor

@bobbyiliev bobbyiliev commented Jan 14, 2025

Fixes the following when using service accounts for the provider auth:

Unable to create Frontegg client: failed to get token: email claim not found in token

Depends on: https://github.com/MaterializeInc/cloud/pull/10632

@bobbyiliev bobbyiliev marked this pull request as ready for review January 14, 2025 18:23
@bobbyiliev bobbyiliev requested a review from a team as a code owner January 14, 2025 18:23
@bobbyiliev bobbyiliev requested review from SangJunBak and removed request for a team January 14, 2025 18:23
}
}

if email == "" {

Choose a reason for hiding this comment

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

Is email guaranteed to be an empty string when claims["email"] doesn't return ok as true? If not, wondering if we should add an email = "" right before if metadata, hasMetadata := claims["metadata"].(map[string]interface{}); hasMetadata {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, this is a good point! Thanks Jun!

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.

2 participants