microsoft / project-rome

Code samples and documentation of Microsoft's Project Rome SDK
https://aka.ms/projectrome
Creative Commons Attribution 4.0 International
448 stars 101 forks source link

How to make Project Rome on Xamarin (Android) forget about previous auth code? #49

Open MahdiGhiasi opened 6 years ago

MahdiGhiasi commented 6 years ago

I'm adding a "Log out" button into my Xamarin (Android) app which uses Project Rome.

How can I make Platform forget about the current authenticated user so it asks for authentication (via FetchAuthCode event) again?

sphenry commented 6 years ago

Starting with the v0.11 SDK, authentication is handled outside of the Platform object, so it no longer caches token itself. Check out the Account Provider Sample for how to manage the auth token:

https://github.com/Microsoft/project-rome/tree/master/Android/samples/account-provider-sample

MahdiGhiasi commented 6 years ago

Is there any specific timeline for v0.11 SDK release on Xamarin for Android? (Currently it's available on Java Android, but Xamarin for Android is still at v0.8)

cmknox commented 6 years ago

No, we do not have a specific timeframe at this point. However, it's definitely something we'll be working on soon, so stay tuned!

MahdiGhiasi commented 6 years ago

It's been almost two months now, and Project Rome SDK for Xamarin for Android is still at v0.8. Any news?

cmknox commented 6 years ago

Hey thanks for checking back! We are actively investigating work in this space, so yes progress is being made! Nothing to announce quite yet, however. Thanks for checking...

mediaexplorer74 commented 2 years ago

Is there any specific timeline for v0.11 SDK release on Xamarin for Android? (Currently it's available on Java Android, but Xamarin for Android is still at v0.8)

Hi. I noticed that Xamarin folder (branch) at Project Rome was deleted... Do you have some starter app? Please share any simple X app that simply sends Hello from sender to receiver :)