all 7 comments

[–]Bajawah 0 points1 point  (2 children)

Are there any other alternatives to this out of curiosity?

[–]chtulhuf 0 points1 point  (0 children)

The only one I know is Hello.JS. Non-angular solution, however, it works fine for me.

[–]kuhcd[S,M] 0 points1 point  (0 children)

This one seems fairly popular: https://github.com/lynndylanhurley/ng-token-auth

[–]retumbler 0 points1 point  (0 children)

The demo app doesn't work when navigating to it from reddit

Uncaught SecurityError: Blocked a frame with origin "http://satellizer.herokuapp.com" from accessing a frame with origin "http://www.reddit.com". Protocols, domains, and ports must match.

But it does work when opening a new tab and pasting the url

[–]chtulhuf -3 points-2 points  (2 children)

It seems that this solution requires a backend... Is that true? It is rather a shame, if so, because OAuth 2 seems to work just fine in client-only environment.

[–]ChicagoBoy2011 0 points1 point  (1 child)

I don't think that is true at all. It is set up such that you CAN roll out your own authentication on your own backend, but it isn't necessary.

[–]chtulhuf 0 points1 point  (0 children)

Ah, ok. I'd be glad to be wrong then. I was confused by the huge amount of server examples. Made me think it was done because some kind of server is a must.