Skip to content

docs(sso-setup): add user-consent fields to oauth2PermissionScopes#2821

Open
corinagum wants to merge 1 commit intomainfrom
cg/sso-setup-user-consent
Open

docs(sso-setup): add user-consent fields to oauth2PermissionScopes#2821
corinagum wants to merge 1 commit intomainfrom
cg/sso-setup-user-consent

Conversation

@corinagum
Copy link
Copy Markdown
Collaborator

@corinagum corinagum commented May 8, 2026

Summary

The Step 3 and Step 4 oauth2PermissionScopes payloads in sso-setup.mdx were missing two fields:

  • userConsentDescription
  • userConsentDisplayName

When the scope is type: "User" (which it is here), these fields are what end users see at the consent prompt. Without them, the prompt falls back to the admin text or default strings — a degraded UX.

This PR also expands adminConsentDescription from "Access as user" (which was identical to the display name) to an actual descriptive sentence.

Context

PR #2705 opened by @hggzm originally added these fields against the pre-rewrite sso-setup.md. That file was renamed to sso-setup.mdx and substantially rewritten in #2719, leaving #2705 with an unresolvable rebase conflict (modify/delete). This PR re-applies the contribution against the current file. Closes the gap; #2705 can be closed as superseded.

Refs: #2670, #2705

Copilot AI review requested due to automatic review settings May 8, 2026 21:57
The Step 3 and Step 4 `oauth2PermissionScopes` payloads were missing
`userConsentDescription` and `userConsentDisplayName`. Without these,
the consent prompt shown to end users falls back to the admin text or
default strings when the scope is `type: "User"`. Also expand
`adminConsentDescription` from "Access as user" to a sentence that
actually describes what the scope grants.

Picks up content from #2705 (which was opened against the pre-rewrite
`sso-setup.md` and is now superseded by #2719's rename to .mdx).

Refs: #2670, #2705

Co-authored-by: Hugo Gonzalez <hugogonzalez@microsoft.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the SSO setup documentation to ensure the access_as_user scope has end-user consent text configured, improving the consent prompt UX for user-scoped delegated permissions.

Changes:

  • Add userConsentDescription and userConsentDisplayName to the oauth2PermissionScopes payloads in Steps 3 and 4.
  • Expand adminConsentDescription to a fuller descriptive sentence (instead of matching the display name).

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