Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,16 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
}

// use existing SSO session or request to login
const ssoSession = await extensionApi.authentication.getSession('redhat.authentication-provider', ['openid'], {
createIfNone: true,
});
const ssoSession = await extensionApi.authentication.getSession(
'redhat.authentication-provider',
[
'api.iam.registry_service_accounts', //scope that gives access to hydra service accounts API
'api.console',
],
{
createIfNone: true,
},
);

// check Developer Sandbox status and sign up for it if possible
let status: SBSignupResponse = await getDevSandboxSignUpStatus((ssoSession as any).idToken);
Expand Down