angular-client-side-auth icon indicating copy to clipboard operation
angular-client-side-auth copied to clipboard

How about using JWT instead of cookies

Open ankitladhania opened this issue 11 years ago • 5 comments

I was really impressed by the way auth has been implemented. But i Thought i would be much nicer to use JSON Web Token(JWT). what have others to say about it ? like is it Good ? Bad? Please let me know as i'm implementing JWT for my production app.

ankitladhania avatar Aug 28 '14 17:08 ankitladhania

Great idea. I was just looking into using that myself.

With that: +1

tzarger avatar Aug 28 '14 18:08 tzarger

You should check out - https://github.com/sahat/satellizer

Its a great example of Token-based AngularJS Authentication.

jshemas avatar Aug 28 '14 18:08 jshemas

That is an awesome example, and may very well be the way to go forward. I don't see the point in having two repo's solving the same problem in the same way, so maybe we can just keep this repo as it is for people looking for how to do auth in Anuglar with good old forms auth + cookies. What do you guys think?

fnakstad avatar Sep 14 '14 09:09 fnakstad

I believe your repo and satellizer are different. You go further with role based authentication on client and server side. I dont believe satellizer does that. I will say if you have the time, do some upgrade.

flt123 avatar Sep 14 '14 14:09 flt123

I agree with @flt123. I think there are many approaches and that this repo has a lot of merit for an approach based around cookies. If you wish to explore JWT, then satellizer looks promising, but auth0-angular is also pretty cool and worth considering.

iotaweb avatar Sep 15 '14 10:09 iotaweb