Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Help with Xamarin.Auth

$
0
0

I followed this tutorial but I can't get the URL redirect working. Maybe I have misunderstood but this is what I've tried ...

In the iOS project ...

I added this URL Scheme to info.plist: com.spike.Xamarin.OAuth:/oauth2redirect
I override the AppDelegate.OpenUrl method(s) (both overloads) and implement the code from the tutorial

In the PCL project ...

I pass same URL to the Xamarin.Auth.OAuth2Authenticator ctor.
I add an event handler to the Xamarin.Auth.OAuth2Authenticator.Completed event, to fetch the access token and so on.

In my protected Azure Mobile service (AAD / Express) ...

I registered the URL reversed: OAuth.Xamarin.spike.com:/oauth2redirect

Result

What happens is I get to the login page and I'm able to fill in my credentials as expected. But the final redirect never hits the AppDelegate.OpenUrl method.

What am I getting wrong here?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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