xamarin / Xamarin.Auth

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

LinkedIn authentication redirects to Redirect url and not to app #361

Closed georgethms10 closed 5 years ago

georgethms10 commented 5 years ago

Xamarin.Auth Issue

IF BUG, INCLUDE THIS PART:

Version

Steps to reproduce

  1. Tap login with linked in
  2. app navigates to Linked in page
  3. After login it redirects to RedirectUrl
  4. It is not coming back to application callbacks

Code

auth2Obj = new OAuth2Authenticator(
                isUsingNativeUI:true,
                    clientId: Api.clientIdLinkedin,
                    clientSecret: Api.clientSecretLinkedin,
                    scope: Api.scopeLinkedin,
                    authorizeUrl: new Uri(Api.authorizeUrlLinkedin),
                    redirectUrl: new Uri(Api.redirectUrlLinkedin),
                    accessTokenUrl: new Uri(Api.accessTokenUrlLinkedin));

            mDialog.Show();
            if (auth2Obj != null)
            {
                auth2Obj.Completed += LoginComplete;
                auth2Obj.Error += Cancel;
                auth2Obj.ShowErrors = true;
                activity.StartActivity(auth2Obj.GetUI(activity));
            }

Platform:

Expected behaviour

It should navigate back to application callbacks either OnCompleted or Error

Actual behaviour

After successful authentication it navigates to the Redirect URL and stays there.

higher-faster-better commented 4 years ago

Why was this issue closed? @georgenthms10, you found the solution?

Manik400 commented 1 year ago

iam building flutter app and using HTTP , flutter web auth to make request to sign in lnkedin and then in lnkdin dev redirect is not of my app it is some another website but I want my app to automatically back to my app instead of redirect URL or I want to have web HTTP URL how can resolve this