Skip to content

Fix MS OAuth - #457

Merged
fomalhautb merged 5 commits into
devfrom
fix-ms-oauth
Feb 21, 2025
Merged

fomalhautb merged 5 commits into
devfrom
fix-ms-oauth

Conversation

@fomalhautb

@fomalhautb fomalhautb commented Feb 21, 2025 •

Copy link
Copy Markdown
Contributor

Fixes STACK-BACKEND-7C


Important

Fix Microsoft OAuth by updating MicrosoftProvider and patching openid-client for tenant ID handling.

  • OAuth Provider:
    • In microsoft.tsx, update MicrosoftProvider to use encodeURIComponent for tenantId.
    • Modify issuer, authorizationEndpoint, tokenEndpoint, and jwksUri to support tenant ID replacement.
    • Add openid to baseScope and set openid to true.
  • Dependencies:
    • Lock openid-client version to 5.6.4 in apps/backend/package.json.
    • Add patchedDependencies for [email protected] in package.json to apply a patch.
  • Misc:
    • Update MicrosoftProvider to handle unverified emails and missing profile images.

This description was created by Ellipsis for 5efca76. It will automatically update as commits are pushed.

@vercel

vercel Bot commented Feb 21, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stack-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 6:29pm
stack-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 6:29pm
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 6:29pm

@recurseml

recurseml Bot commented Feb 21, 2025

Copy link
Copy Markdown

😱 Found 1 issue. Time to roll up your sleeves! 😱

Comment thread apps/backend/package.json Resolved
@fomalhautb
fomalhautb merged commit b465ddd into dev Feb 21, 2025
@fomalhautb
fomalhautb deleted the fix-ms-oauth branch February 21, 2025 18:39
TheCactusBlue pushed a commit that referenced this pull request Feb 26, 2025

This branch was successfully deployed

3 active deployments
Preview – stack-backend — 5efca765 Deployed Feb 21, 2025 by vercel[bot]
Preview – stack-dashboard — 5efca765 Deployed Feb 21, 2025 by vercel[bot]
Preview – stack-demo — 5efca765 Deployed Feb 21, 2025 by vercel[bot]
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