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

Auth working in IDX? #7315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Auth working in IDX? #7315

wants to merge 1 commit into from

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Jun 12, 2024

Description

Scenarios Tested

Sample Commands

@@ -52,7 +50,10 @@ async function autoAuth(options: Options, authScopes: string[]): Promise<void |
// Make sure any error here doesn't block the CLI, but log it.
logger.debug(`Error getting account credentials.`);
}

if (process.env.MONOSPACE_ENV && token && clientEmail) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: we should maybe replace this MONOSPACE check with a check whether clientEmail is a user email (as opposed to a service account email). IIUC, this would make ADCs set through GCloud work more consistently with some of our login flows. Likely do need to iron out some details around logout with it tho

Copy link
Contributor

Choose a reason for hiding this comment

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

++ we'll need a huge rework on logout anyways i think...

@@ -52,7 +50,10 @@ async function autoAuth(options: Options, authScopes: string[]): Promise<void |
// Make sure any error here doesn't block the CLI, but log it.
logger.debug(`Error getting account credentials.`);
}

if (process.env.MONOSPACE_ENV && token && clientEmail) {
Copy link
Contributor

Choose a reason for hiding this comment

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

++ we'll need a huge rework on logout anyways i think...

@joehan joehan marked this pull request as ready for review June 13, 2024 22:51
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.

None yet

2 participants