Skip to content

Commit

Permalink
docs: support for oid microsoft parameter (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Dec 3, 2024
1 parent e9c9177 commit 382ef2e
Showing 1 changed file with 7 additions and 3 deletions.
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 Ory easier, you can use the identifier obtained from the `me` endpoint and the `oid` field.

### 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

0 comments on commit 382ef2e

Please sign in to comment.