xamarin / Xamarin.Auth

Xamarin.Auth
Apache License 2.0
541 stars 351 forks source link

[iOS] Strava authenticate 'unknown_user' error #302

Closed stesvis closed 6 years ago

stesvis commented 6 years ago

Xamarin.Auth Issue

Version

Steps to reproduce

I am loading the Strava authentication page like this:

            var authenticator = new OAuth2Authenticator(
                clientId: myClientId,
                clientSecret: myClientSecret,
                scope: "view_private,write",
                authorizeUrl: new Uri(@"https://www.strava.com/oauth/authorize"),
                redirectUrl: new Uri(myRedirectUri),
                accessTokenUrl: new Uri(@"https://www.strava.com/oauth/token"),
                getUsernameAsync: null,
                isUsingNativeUI: false);

            authenticator.Completed += OnStravaAuthCompleted;
            authenticator.Error += OnStravaAuthError;

            AuthenticationState.Authenticator = authenticator;

            var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
            presenter.Login(authenticator);

As soon as the Strava login page is loaded, I get error messages such as

OAuth Error = unknown_user

and it keeps coming back when I close it. The same code works perfectly in Android.

newky2k commented 6 years ago

@stesvis can you please provide a small sample project that replicates the issue so we can investigate it further

stesvis commented 6 years ago

Hi @newky2k sorry i don't have one. i changed approach and now i am just calling the strava api directly.

newky2k commented 6 years ago

@stesvis thanks anyway

vai1991sri commented 5 years ago

HI I am also getting this issue. I integrated OAuth2Authenticator for Instagram sign in but after opening in browser its throwing ""unknown_user" error. Please help me

fernandovm commented 5 years ago

Hi, any news? I'm also getting this issue with instagram, exactly as described by @vai1991sri.

@vai1991sri, did you found any workaround?

KevinHu-au commented 5 years ago

Get the same error when using Xamarin.Auth with Instagram