Base solution for your next web application
Open Closed

Xamarin Social Login via WebView #4873


User avatar
0
ribbo created

Hi, I am reviewing building on top of my application a Xamarin App. But one requirement is social login which I don't believe is implemented?

Would it be possible to use a WebView as the login page of the App, this would use my regular web app login page and then somehow get the token to be used in the App? I haven't worked with the App really yet but want to know if the above is possible in anyway before I even begin on the project.

Thanks, Matt


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Ribbo,

    Social logins are not implemented in Xamarin app yet. We have plans to integrate social logins into Xamarin app but probably it will take a few months to complete.

    I'm not sure if web view will work or not. Let me ask this to team and get back to you.

  • User Avatar
    0
    ribbo created

    Thanks, I am ideally looking for using the MVC login via a WebView and collecting the access token from this or some kind of SSO to the app from it. The reason being the SSO is to solution called Strava and using .NET MVC it was easily plugged in. I have already done this with Angular (as social login is much harder with Angular application), I use the MVC application to login and then do a SSO to Angular (using the same method as you use for the public web page).

    Any thoughts from the team would be greatly appreciated before I take on the project.

    Thanks, Matt

  • User Avatar
    0
    alper created
    Support Team

    Hi,

    Though I personally not used, I came across to this Xamarin Social component => <a class="postlink" href="https://components.xamarin.com/view/xamarin.social">https://components.xamarin.com/view/xamarin.social</a>

    And there's Microsoft doc about Authenticating Users with an Identity Provider. See => <a class="postlink" href="https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/authentication/oauth">https://docs.microsoft.com/en-us/xamari ... tion/oauth</a>

    The official Xamarin.Auth library for authentication => <a class="postlink" href="https://github.com/xamarin/Xamarin.Auth">https://github.com/xamarin/Xamarin.Auth</a>