UserCredential in UWP
aline-almeida opened this issue · 2 comments
aline-almeida commented
Hi!
I've tried to use this in a UWP app, but the constructor of UserCredential doesn't accept a password...
How can I overcome this?
Thanks
Aline
aline-almeida commented
Any info on this ?
I need to release my app ASAP...
Thanks
Aline
jmprieur commented
In UWP you would probably want to use the Windows Integrated Authentication. Please see https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/wiki/AcquireTokenSilentAsync-using-Integrated-authentication-on-Windows-(Kerberos)
See also https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/wiki/Acquiring-a-token-return-AuthenticationResult-and-possibly-UserInfo#summary-for-public-client-applications for the list of supported grants for public client applications.