Skip to content
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

docs: support for oid microsoft parameter #1936

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/kratos/social-signin/20_microsoft.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ By default, Microsoft uses the identifier taken from the `sub` field of OIDC `id
the standard OIDC `/userinfo` endpoint.

However, some systems use the `id` field returned by the `https://graph.microsoft.com/v1.0/me` endpoint as a subject identifier.
To make migrating such systems to the Ory easier, you can use the identifier obtained from the `me` endpoint.
Others use the `oid` (Object ID) to identify users across different services.

To do that, add the `subject_source` field set to `me` to the social sign-in provider config. Use Ory CLI:
To make migrating such systems to the Ory easier, you can use the identifier obtained from the `me` endpoint and the `oid` field.
aeneasr marked this conversation as resolved.
Show resolved Hide resolved

### Example

Add the `subject_source` field set to `me` to the social sign-in provider config. Use the Ory CLI:

1. Download the Ory Identities config from your project and save it to a file:

Expand All @@ -246,7 +250,7 @@ To do that, add the `subject_source` field set to `me` to the social sign-in pro
- id: microsoft
(...)
// highlight-start
subject_source: me
subject_source: me # or oid
# or
# subject_source: userinfo
scope:
Expand Down
Loading