Esri/arcgis-maps-sdk-dotnet-samples

oAuth Xamarin.Forms.iOS returns 403

OliverMannhart opened this issue · 1 comments

Hey there,

We are trying to get your Xamarin.Forms samples for oAuth running.
The Xamarin.Forms.UWP Project works as expected. But the App of the Xamarin.Forms.iOS Project can not authenticate itself, even-though it uses exactly the same parameter as in the UWP project (Defined in Forms/Shared/Samples/Security/OAuth/OAuth.xaml.cs).

On iOS we always get a 403 Response. But we use the same Test-User as we us in the UWP Project, so it can't be the User.

Thanks for your help

Hey there,

We found out, that if we set a ClientSecret, we will get a 403 Response. But only on iOS.
Without the ClientSecret it works fine.

In the documentation (https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/mobile-and-native-user-logins/) you write, that the ClientSecret is not necessary for the authorization code grant. So it make sense to remove the ClientSecret in the code.

But it is strange that the sample app does set the TokenAuthenticationType to OAuthAuthorizationCode if a ClientSecret is set.

So maybe we are just confused about the wording.

Thanks