ory / kratos

The most scalable and customizable identity server on the market. Replace your Homegrown, Auth0, Okta, Firebase with better UX and DX. Has all the tablestakes: Passkeys, Social Sign In, Multi-Factor Auth, SMS, SAML, TOTP, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=kratos
Apache License 2.0
11.32k stars 963 forks source link

Identify users by oid while using Microsoft as a OIDC provider #4170

Closed teawithfruit closed 3 weeks ago

teawithfruit commented 1 month ago

Preflight checklist

Ory Network Project

No response

Describe your problem

In the case of Microsoft, using sub as an identifier can lead to problems. Because the use of OIDC at Microsoft is based on an app registration, the content of sub changes with every new app registration. Sub is therefore not uniquely related to the user. It is therefore not possible to transfer users from one app registration to another without further problems. https://learn.microsoft.com/en-us/entra/identity-platform/id-token-claims-reference#payload-claims

Describe your ideal solution

With the use of oid it is possible to identify a user by a unique id.

Workarounds or alternatives

There are no other options.

Version

1.3.0

Additional Context

No response