Hey team! We have setup social sign-in via `micros...
# ory-network
s
Hey team! We have setup social sign-in via
microsoft
and we can't seems to extract the claims. The scope we used are
openid
,
email
, and
profile
. Please see thread for the setup.
Copy code
{
              "client_id": "client_id",
              "client_secret": "client_secret",
              "id": "microsoft",
              "label": "Microsoft",
              "mapper_url": "<https://storage.googleapis.com/bac-gcs-production/27e416b3e53f417a8b3c4744836f6b4a6adda0679c018d082445a189bc251671540d8113c80a318c66de67ab664dca8b5b0836558828c2804a00b2424d0de253.jsonnet>",
              "microsoft_tenant": "microsoft_tenant",
              "provider": "microsoft",
              "scope": ["email", "profile", "openid"],
              "subject_source": "userinfo"
            },
Copy code
local claims = std.extVar('claims');  
{  
 identity: {  
 traits: {  
 [if 'email' in claims then 'email' else null]: claims.email,  
 },  
 },  
}
"@ory/client": "^1.1.38",