Forum Xamarin.Forms

Help with Xamarin.Auth

JonasRembrattJonasRembratt SEUniversity ✭✭✭
edited September 2017 in Xamarin.Forms

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:


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?


Sign In or Register to comment.