auth0-ionic2-samples icon indicating copy to clipboard operation
auth0-ionic2-samples copied to clipboard

cannot use Auth0 social connectors with ionic 2

Open nigel-dewar opened this issue 8 years ago • 12 comments

I there, I downloaded your ionic sample. It works great on desktop browser. But I found after trying to run on either real device (my android), or emulator GenyMotion, or Ionic View it fails.

Im running an Android Samsung Note 2

Bascially, Auth0 for Ionic 2 for android fails.

What happens when you try to use social connector (live.com ) for instance on a phone, is you get redirected via phones browser to login page, you can login successfully, and page says 'Ok',

BUT..... it does not close and redirect back to the Ionic app. The App just sits there in a frozen state doing nothing because I suppose it is expecting a code to be delivered back to it, so it can say "happy days", you are now authenticated. But this does not happen

Can you please test your ionic 2 sample on an actual Android, or use an emulator, or Ionic View to see what I mean, and confirm that your sample works, and its not just me. I have tested against emulator running Samsung Galaxy S5 as well.

Cheers

nigel-dewar avatar Nov 18 '16 02:11 nigel-dewar

And I can also confirm the same behavior using IOS phone

nigel-dewar avatar Nov 18 '16 03:11 nigel-dewar

Same problem here. Any clues ?

chocopoule avatar Dec 10 '16 23:12 chocopoule

Probably related: https://github.com/auth0-samples/auth0-ionic-samples/issues/49

vmartynets avatar Dec 23 '16 20:12 vmartynets

Thanks for pointing the other thread! However, I tried the solutions mentionned there (reinstall inappbrowser and setting sso to false). Still not working :-(

chocopoule avatar Dec 24 '16 09:12 chocopoule

bump, same problem

alphakennyn avatar Feb 26 '17 21:02 alphakennyn

@alphakennyn updating to last version of auth0 lock didn't help?

vmartynets avatar Feb 26 '17 22:02 vmartynets

@Amialc nope, currently on 10.11.0

alphakennyn avatar Feb 26 '17 22:02 alphakennyn

Im having this problem as well. Really frustrating.

imanube avatar Mar 24 '17 18:03 imanube

Two issues,

  • Using 'Ionic View' "Social Login" is not working.
  • Blank space at the bottom. fullsizerender

luije87 avatar Apr 17 '17 14:04 luije87

Hi ! I have the same problem here. Do you know if there is a fix ?

Schulzro avatar May 09 '17 16:05 Schulzro

Are you using WKWebView ? If so, try removing the plugin and trying with the older UIWebView. I just filed another issue for this exact problem.

https://github.com/auth0/auth0-cordova/issues/42

MT-- avatar May 30 '17 18:05 MT--

Same problem here. Can anybody sign in with an Auth0 account, i.e. not a social connection?

RayGar avatar Jul 31 '17 17:07 RayGar