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

3-legged OAuth with Xamarin.Auth and SAP Cloud Platform

$
0
0

I'm getting my head around OAuth2 using Xamarin.Auth but there'sa few things I need help understanding.

First off is the use of the URL Type (in iOS). I have successfully used 3-L OAuth with Facebook without the overridden AppDelegate.OpenUrl ever have been called. Indeed, I passed the usual Facebook redirect (http://www.facebook.com/connect/login_success.html) and all worked just fine. OpenUrl was never called back to and, apparently, a URL Type was not needed.

I do the same with Sap Cloud Platform however and I get an "invalid_grant" for result. I then tried passing my custom URL Type ("{bundle id}:/oauthCallback"), set a breakpoint in AppDelegate.OpenUrl and started the login. After having passed my user credentials I get a nice looking error page instead, informing me the authentication failed. OpenUrl was (again) not called back to.

So, apparently I haven't understood the use of the URL Type in OAuth flows. When exactly is it needed?

Also, if anyone has any experience with authenticating SCP any hints as to why I get a "invalid_grant" would be much appreciated.

Cheers


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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