oktadev / okta-appauth-xamarin-example

Xamarin.Forms authentication with OpenID Connect and Okta
10 stars 6 forks source link

Logout #3

Open aamirrideo opened 6 years ago

aamirrideo commented 6 years ago

Did you guys implement the Logout feature, i am struggling to clear the cookies. Even if i delete the cookies ,browser somehow persists the data and the user is logged in again.

Any inputs would really be helpful.

Thanks, Aamir

nbarbettini commented 6 years ago

Cross-posting my answer from your question on the blog post:

We didn't have time to show logout in this example, sorry. The reason the user is immediately logged in again is that the user's session is still active on the Okta authorization server.

There are a few things you can do:

nbarbettini commented 6 years ago

If you get it working, let me know and I'll close this issue.

IshaDawar commented 5 years ago

@nbarbettini I have been facing the same issue. Try to use prompt=login but still the user remain logged in the browser.can you please share some other solution

Thanks Isha

IndexOutOfLimit commented 4 years ago

We need one requirement for integrating OKTA login and logout feature on Xamarin.Forms. We are okay for login part but really having trouble on logout part. Even if we uninstall the app and install it again it is not asking for login. Not sure anyone taking this issue but we are having no clue what to communicate to our client.

sbkrishnan2506 commented 4 years ago

@nbarbettini I am having the same issue, I do not see any option to implement the logout.

Please let me know if you have any options.

Thanks

lhughey commented 3 years ago

I am also facing this issue. It seems like having the ability to logout was an afterthought/oversight. I've pieced together 2 ways to logout on mobile, but neither seem to work on Android.

Kev4ever commented 3 years ago

Same problem here.

Kev4ever commented 3 years ago

My problem came from the Xamarin essentials Webauthenticator API, you can only clear the cookies if you use the AuthenticateAsync method with the logout url.