-
Notifications
You must be signed in to change notification settings - Fork 214
Remembered Users list is not displayed in UWP on authentication #1580
Comments
@Arslan007 Any chance you can update to latest version ADAL v5.0.2-preview? Would be nice to see if it can repo there as well. |
@jennyf19 Just tried updating to latest preview of ADAL v5.0.2-preview and also tried with combination of updating to ADAL and MSAL to latest preview packages but same issue exist. |
@Arslan007 Can you provide the exact repro steps? and just to clarify, you got the same behavior w/MSAL? |
@jennyf19 I can send two different videos from iOS and UWP showing the behavior on two differant platforms but how I can send you securely/privately ? Just for adding more info from logs that what I am seeing on logout action.
|
@Arslan007 you can email info you want - jeferrie@microsoft.com |
Steps to reproduce are pretty simple. 1- Authenticate with Azure AD from any UWP app which is using ADAL by providing email/password P.S: While writing this I just saw you replied with your email. Sending you email as well with attachment Much appreciated your quick prompt response |
@Arslan007 not sure when myself, or someone on the team, will have time to look at this more thoroughly, but know it's on our radar. |
@jennyf19 Email sent to you with more details and step to reproduce this issue |
@Arslan007 We synced off-line mainly on this, so here is an update, and a small fixed has been merged into dev as well. Will wait for your confirmation before closing. Add this code to your app: var x = Windows.Security.Authentication.Web.WebAuthenticationBroker.GetCurrentApplicationCallbackUri(); Take the value (something like this: Then, back in the code, result = await authContext.AcquireTokenAsync(todoListResourceId, clientId, redirectURI, new PlatformParameters(PromptBehavior.Auto, false)); Instead of passing in the above value (x) as the redirectURI, pass in null. ADAL will set the redirect uri to You also might be interested in this documentation as well, especially if having issues on corp net. |
@jennyf19 Thanks for the update here as well. I have tested this piece and shared my findings offline to you. |
@jennyf19 I can confirm this fixes the issue for device but Not for Simulators. I am going to open new issue for simulator so it can be tracked. Thanks a lot for your support!! |
Included in 5.0.3-preview release |
Which Version of ADAL are you using ?
ADAL 4.5.1
Which platform has the issue?
UWP, xamarin iOS
What authentication flow has the issue?
Other? - please describe;
Is this a new or existing app?
This is a new app but ready to go in production
Repro
This is a code to sign out the user on UWP.
Expected behavior
If you are using ADAL on UWP to authenticate your user and successfully authenticated to your application and signed out from application and after some time if you try to login on same device and application then it should show last remembered user(s) email list who logged in earlier on same device and application to proceed for authentication with them and should ask password only or alternatively you can login with new account.
Actual behavior
In UWP if you logged in and signed out from same device and application and try to login again on same device and application after sometime then it is not showing the remembered user list to choose from it and always ask for email and password for authentication flow.
Same thing is working fine for Xamarin.iOS where as its not working for UWP even though its Windows tablet/desktop running with edge browser.
Possible Solution
Additional context/ Logs / Screenshots
This is the window which is missing on UWP. This windows appears to show last logged out users to proceed authentication by selecting one of them
The text was updated successfully, but these errors were encountered: