-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix(providers): conform Entra ID when responding with the wrong issuer
#11980
Conversation
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
2 Skipped Deployments
|
81b2c02
to
42648a6
Compare
issuer
issuer
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11980 +/- ##
==========================================
+ Coverage 39.05% 39.27% +0.21%
==========================================
Files 191 191
Lines 29994 29852 -142
Branches 1288 1294 +6
==========================================
+ Hits 11715 11725 +10
+ Misses 18279 18127 -152 โ View full report in Codecov by Sentry. |
As of this comment, I managed to get things working, if the developer knows the |
fbca14b
to
adbe451
Compare
Sorry for replying in this particular PR, as this is relevant with this change it seems.
This pointed to the When trying to understand this logic, I found out the However, in actual input, tenant id is a GUID. Following doesnt match, so It's probably not the direct cause of the issue above as it work fine when i run the standalone code in my local machine but not on my Docker. Can you review and verify if the |
if I may add a dumb question here, am I correct to use
previously I was using EDIT: scrap my โ๏ธ dumbness... I missed out on putting |
Fixes #9635
Closes #9718
Fixes #12041
Microsoft has a non-compliant provider and shows no signs of wanting to fix it ๐ฎโ๐จ: MicrosoftDocs/azure-docs#38427, MicrosoftDocs/azure-docs#113944
The current common-practice approach requires throwing the spec in the ๐๏ธ and:
{tenantid}
withcommon
tid
claim from theid_token
and manually override theissuer
of the discovery metadata with a reconstructedissuer
, this time replacing{tenantid}
with thetid
value. Technically another discovery request is then necessary to get theissuer
.In this PR, I am trying to find a way that would not require modifying the core library (panva/oauth4webapi#131 (comment)) just for the sake of Microsoft, but as it seems, it is quite impossible with a generic API...