Skip to content

Commit

Permalink
feat: add oid as subject source
Browse files Browse the repository at this point in the history
  • Loading branch information
teawithfruit authored Oct 23, 2024
1 parent 278edc2 commit ced8815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selfservice/strategy/oidc/provider_microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func (m *ProviderMicrosoft) updateSubject(ctx context.Context, claims *Claims, e
claims.Subject = user.ID
}

if m.config.SubjectSource == "oid" {
claims.Subject = claims.Object
}

return claims, nil
}

Expand Down

0 comments on commit ced8815

Please sign in to comment.