Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

LinkedIn OAuth with Deep Linking help

$
0
0

So I've successfully implemented Xamarin.Auth for Google login,

now, trying to implement the same thing for LinkedIn, for some reason the custom URL interceptor (for deep linking), doesn't catch the redirect URI?

I've set a live domain (linkedin's website) to be my redirect URI on linkedin's app console, and am using it for the Xamarin.Auth's authenticator. It successfully opens up the native UI browser and loads the LinkedIn login page, but once the user logs in, they get left on the LinkedIn website, instead of routed back to the app.

Here is my custom url scheme interceptor code (the intent filter):

[Activity(Label = "ActivityCustomUrlSchemeInterceptor")]

[
IntentFilter
(
actions: new[] { Intent.ActionView },
Categories = new[]
{
Intent.CategoryDefault,
Intent.CategoryBrowsable
},
DataSchemes = new[]
{
"Sybrin.Mobile.OnBoarding.Droid.Sybrin.Mobile.OnBoarding.Droid",
"com.googleusercontent.apps.649780690715-0kajj7q0kgf40mc2fpct709cehgnei16",
"xamarin-auth",
"https",

            },
    DataHosts = new[]
    {
        "localhost",
        "authorize",
        "(linkedin's website)" (it wont let me post links)
    },
    DataPaths = new[]
    {
        "/oauth2redirect",
        "/oauth-success"
    },
    AutoVerify = true
)

]

Interestingly, when the intent-filter is like that, Google's deep linking breaks, but when I comment out the DataHosts, google successfully routes back into the app after login.

I hope I've been clear. Any help will be greatly appreciated.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>