Skip to content

Compass 10817#8214

Draft
paula-stacho wants to merge 5 commits into
mainfrom
COMPASS-10817
Draft

Compass 10817#8214
paula-stacho wants to merge 5 commits into
mainfrom
COMPASS-10817

Conversation

@paula-stacho

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Copilot AI review requested due to automatic review settings July 7, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Atlas auth/service configuration and sign-in flow in atlas-service, including new OIDC issuer/clientId defaults and adjustments to how user identity is derived after authentication.

Changes:

  • Updates Atlas OIDC configuration defaults (clientId/issuer) and allows overriding the backend preset via an env var.
  • Adjusts sign-in behavior and user info handling in the main-process auth service.
  • Updates the sign-in success toast copy to no longer depend on user profile fields.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
packages/atlas-service/src/util.ts Updates default Atlas OIDC config and changes how the backend preset is selected (incl. env override).
packages/atlas-service/src/store/atlas-signin-reducer.ts Changes the sign-in success toast title copy.
packages/atlas-service/src/main.ts Modifies the OIDC plugin setup and sign-in flow, including user info derivation from the access token.

Comment thread packages/atlas-service/src/main.ts
Comment on lines +360 to 370
private static getUserInfoFromAccessToken(
accessToken: string
): AtlasUserInfo {
const base64Url = accessToken.split('.')[1];
const decodedToken = JSON.parse(
Buffer.from(base64Url, 'base64url').toString('utf8')
);
return {
sub: decodedToken.sub,
};
}
Comment on lines +234 to 238
config[
process.env.COMPASS_ATLAS_SERVICE_BACKEND_PRESET ??
atlasServiceBackendPreset
]
) as AtlasServiceConfig;
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