Ionic Cloud AUTH in Angular 2


#1

Hello, my dear fellows,

I am having a hard time deciding which Authentication service should I use.

I really like the way Ionic Cloud Services are designed to work beautifully together but I need to have also desktop version of my application available.

I wasn’t able to find out answer if it is possible at all, I have read all the posts on this forum on this topic and tried also StackOverflow.

I have looked at the API, but only found endpoints useful for setting admin dashboard, not for user login.

So, the question is: Is it possible to use (login, work with data) Ionic Auth in single page application (Angular 2)?

If not, which service would you recommend and why? :wink:

Thank you very much for your answers!


#2

Ionic Auth is made for Ionic applications. It support Ionic 1 and Ionic 2+. Ionic 2+ is based on Angular (2+). So yes, Ionic Auth will work with Angular applications.


#3

Thank you for your answer. I knew that because I had already built some AngularJS web apps and now I am building Ionic 3 application.

I have read on one thread, not sure if on this forum, that It is very hard to get authentication work in the browser, for example on desktop, because of missing redirect from the ionic.io logging page.

That behavior is of course solved by cordova plugin in Ionic mobile app.

I just want to make sure I won’t be implementing auth service that in the end, I won’t be able to use in desktop Angular 2 app later when I decide to offer the functionality in the browser.

Thank in advance for your reply. :wink:


#4

Sorry, can’t help there as I don’t have actual experience with it. Hope someone else has.