Open ghost opened 5 years ago
Did you ever figure out how to log out in UWP? I am using the Xamarin.Forms example in this codebase, and was able to log into Facebook, but I don't see how to log out. Further, the key/values that were supposed to be stored during the log in process are all null. Where is the access_token stored?
I have done logout functionality.
On Wed, 28 Aug 2019, 1:06 am ThaineNorris, notifications@github.com wrote:
Did you ever figure out how to log out in UWP? I am using the Xamarin.Forms example in this codebase, and was able to log into Facebook, but I don't see how to log out. Further, the key/values that were supposed to be stored during the log in process are all null. Where is the access_token stored?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xamarin/Xamarin.Auth/issues/409?email_source=notifications&email_token=AML3GRSL4S6PPV66EHOAAG3QGV63RA5CNFSM4IML3KAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5I36LI#issuecomment-525451053, or mute the thread https://github.com/notifications/unsubscribe-auth/AML3GRSYU65EJDE6CMDNDRDQGV63RANCNFSM4IML3KAA .
Could you share with me how you did it?
Hi,
Just call this below function from Platform using dependency service.
public void SignOut() { Settings.AccessToken = string.Empty; HttpBaseProtocolFilter baseFilter = new HttpBaseProtocolFilter(); foreach (var cookie in baseFilter.CookieManager.GetCookies(new Uri(AppSettings.AuthorizationUrl))) { baseFilter.CookieManager.DeleteCookie(cookie); } }
On Thu, Aug 29, 2019 at 1:56 AM ThaineNorris notifications@github.com wrote:
Could you share with me how you did it?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xamarin/Xamarin.Auth/issues/409?email_source=notifications&email_token=AML3GRUSLERCROUNK5BITR3QG3NP5A5CNFSM4IML3KAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5MLVFY#issuecomment-525908631, or mute the thread https://github.com/notifications/unsubscribe-auth/AML3GRV5WD3NFDNJUTIYMB3QG3NP5ANCNFSM4IML3KAA .
-- Regards, Sagar Parida Software Developer
Mobile Programming LLC
Thank you! I will give that a try.
U welcome
On Fri, Aug 30, 2019 at 9:26 PM ThaineNorris notifications@github.com wrote:
Thank you! I will give that a try.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xamarin/Xamarin.Auth/issues/409?email_source=notifications&email_token=AML3GRX7GIO5VMIUHTU4E6TQHE7LTA5CNFSM4IML3KAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SB2DQ#issuecomment-526654734, or mute the thread https://github.com/notifications/unsubscribe-auth/AML3GRT6M2DWAOWHE5XFXPLQHE7LTANCNFSM4IML3KAA .
-- Regards, Sagar Parida Software Developer
Mobile Programming LLC
Xamarin.Auth Issue
How Logout is working, Please explain ?
IF BUG, INCLUDE THIS PART:
Version
Steps to reproduce
1. 2. 3.
Platform:
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead Can you also include a screen shot?
IF IT IS A NEW FEATURE REQUEST, INCLUDE THIS PART:
Feature description
Write a description of the feature. How should it work? How should it look? Include some graphics if this could help!