HNeukermans / adal-ts

Adal.js typescript rewrite
MIT License
38 stars 21 forks source link

Is there any way to get userName key ? #42

Closed anasvn closed 2 years ago

anasvn commented 5 years ago

This is the response from getUser function

aio: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" aud: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" exp: 1548219291 family_name: "Ginos" given_name: "Alexandra" iat: 1548215691 ipaddr: "202.83.11.111" iss: "https://sts.windows.net/sample/" name: "GINOSAN" nbf: 1548215691 nonce: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" oid: "xxxxxxx-xxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxx" onprem_sid: "S-xx-xx-xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" sub: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" tid: "xxxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxx" unique_name: "xxxxxxxxxxxxxxxx" upn: "xxxxxxxxxxx" uti: "xxxxxxxxxxxxxxxxxxxxxxxxxxx" ver: "1.0"

I didn't see any email or userName fields. Without email I can't login with my application. Is there any way to get userName ?