Skip to content

Preserve case of username in scopes[1] so getSession caller can obtain it exactly (required when case-sensitive external authorization is being used) #281

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

Merged
merged 8 commits into from
Jun 27, 2025

Conversation

gjsjohnmurray
Copy link
Collaborator

This PR contributes to fixing intersystems-community/vscode-objectscript#1593

Callers of vscode.authentication.getSession for our authprovider should obtain the username by dropping the first /-piece of session.account.id in prfeference to using session.scopes[1] because the latter has been folder to lowrcase.

It replaces #280 and will be used by replacements of intersystems-community/vscode-objectscript#1596 and intersystems/language-server@49e3dc5

@isc-bsaviano
Copy link
Collaborator

@gjsjohnmurray Can you fix the whitespace changes before you mark this ready for review? They are making the review difficult.

@gjsjohnmurray gjsjohnmurray changed the title Preserve case of username in session.account.id so getSession caller can obtain it Preserve case of username in scopes[1] so getSession caller can obtain it exactly (required when case-sensitive external authorization is being used) Jun 26, 2025
@gjsjohnmurray
Copy link
Collaborator Author

Commits 5 and 7 together show the only non-whitespace changes. I think the whitespace changes occurred because your previous work in this file resulted in space-indenting, which isn't the convention for this project.

@gjsjohnmurray gjsjohnmurray marked this pull request as ready for review June 26, 2025 21:02
Copy link
Collaborator

@isc-bsaviano isc-bsaviano left a comment

Choose a reason for hiding this comment

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

Can you please squash this when you merge? There are a lot of intermediate commits that add no value to the overall repo history.

@gjsjohnmurray gjsjohnmurray merged commit 6eaff51 into intersystems-community:master Jun 27, 2025
3 checks passed
@gjsjohnmurray gjsjohnmurray deleted the fix-os1593 branch June 27, 2025 15:53
@isc-bsaviano
Copy link
Collaborator

Should we prepare a release for Monday, or do you want to tackle that bulk account culling issue first?

@gjsjohnmurray
Copy link
Collaborator Author

Let's release on Monday. That enhancement can wait for the next release (or later).

@isc-bsaviano
Copy link
Collaborator

Sounds good, I'll open the PR shortly

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