-
Notifications
You must be signed in to change notification settings - Fork 918
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
base: master
Are you sure you want to change the base?
Auth working in IDX? #7315
Conversation
@@ -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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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...
Description
Scenarios Tested
Sample Commands