cordova - Authentication fails on Windows phone. User GUID is compared to email -
i developing ionic 2 project (built on cordova) using azure active directory adal plugin cordova:
https://github.com/azuread/azure-activedirectory-library-for-cordova
it authenticates on android , ios fails on windows phone 10. have debugged problem way until part goes native code , seems fine.
i internal @ microsoft , doing authentication flow , first sent 1 login screen our mobile application before being redirected org sign-in page 2 factor authentication flow. after 2fa flow accepted redirects our application fails because string comparison compare login request text returned fails because login text of format xxx@microsoft.com , returned identifier user guid. have verified indeed unique user guid should not compared email address.
is there work around issue?
update: here jwt. got fiddler. saved , anonymized of request/responses too, let me know if need them.
{ typ:"jwt", alg:"rs256", x5t:"rrqqu9rydbvrwmcocuxub2*****", kid:"rrqqu9rydbvrwmcocuxub2*****", } { aud:"5712d3fd-8e22-4040-afbf-********", iss:"https://sts.windows.net/72f988bf-86f1-41af-91ab-********/", iat:1482954230, nbf:1482954230, exp:1482958130, acr:"1", amr:[ "pwd", "mfa" ], appid:"197e6baa-c9ed-4354-a561-***********", appidacr:"0", e_exp:10800, family_name:"****", given_name:"*******", ipaddr:"167.***.***.***", name:"****** ******", oid:"e9a9b8a5-46e5-4c78-9593-***********", onprem_sid:"s-1-5-21-2127521184-1604012920-1887927527-**********", platf:"14", puid:"10037ffe814b****", scp:"directory.read.all users.read.all", sub:"jd7cxiecj-7uvvbc-o0b8vyst0gdxz1kdd-*******", tid:"72f988bf-86f1-41af-91ab-********", unique_name:"******@microsoft.com", upn:"******@microsoft.com", ver:"1.0" }
Comments
Post a Comment