SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

NativeSafariAuthenticator IOS Logout

Open nemaroller opened this issue 7 years ago • 1 comments

In Nuget package 1.0.49, it seems the Logout using the IOS NativeSafariAuthenticator doesn't clear the cookies in the native browser used for authentication for the logged in user. Upon subsequently initiating the authentication sign in, it seems to use the previous user token, and immediately signs them in without invoking the logins screen from the third-party authentication service.

However, if I merely switch to the WebAuthenticator, it shows the login screen as expected:

screen shot 2018-10-12 at 3 43 22 pm

I noticed there was a bug for the Facebook api using the native authenticator ( https://github.com/Clancey/SimpleAuth/issues/46) which perhaps is similar to this issue. This is for authenticating against an Active Directory service.

As an aside, this bug report for a similar component seems to state that this is an IOS issue - meaning there is perhaps no way to clear the cookies which are stored by the safari browser? (unless the user manually clears the cookies from the Settings > Safari > Clear data...): https://github.com/xamarin/Xamarin.Auth/issues/204. If I open the settings app and clear the safari data, then all is well.

nemaroller avatar Oct 12 '18 20:10 nemaroller

Did you solve this?

samt1925 avatar Jun 24 '20 21:06 samt1925