Drupal 7 user authentication in Angular 2

86 views
Skip to first unread message

Sumeet Darade

unread,
Aug 14, 2016, 6:35:31 AM8/14/16
to AngularJS
I have frontend in angular 2 and backend in drupal 7 . Everything works well and good.

Except , USER AUTHENTICATION.

what type of authentication can I use , that will work with Angular 2 ?
which one is the most secure ?

I can implement it with Basic Authorization , but is it secure enough ?

Can anyone provide working example on this ?

Thanks !

Sander Elias

unread,
Aug 16, 2016, 6:26:42 AM8/16/16
to AngularJS
Hi Sumeet,

If you are on SSL, basic authentication might be secure enough. Without SSL it's highly unsecured. 
You can use any form af authentication you fancy. If you don't have good knowledge in this area I would advise to use a trusted 3rth party to handle this. It's very easy to mess this up.
There are a lot of solutions available for this. Google's firebase auth, google Oauth, auth0. Most social networks also provide an api to handle this. 
If your application has it's own server, or not makes also a big difference. 

here are some relevant links on auth:

Hope this helps you a bit,
Regards
Sander
 
Reply all
Reply to author
Forward
0 new messages