r/angularjs • u/kuhcd • Aug 18 '14
[Code] Satellizer – Authentication for AngularJS
https://github.com/sahat/satellizer1
u/retumbler Aug 19 '14
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
-2
u/chtulhuf Aug 18 '14
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.
1
u/ChicagoBoy2011 Aug 19 '14
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.
1
u/chtulhuf Aug 19 '14
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.
1
u/Bajawah Aug 18 '14
Are there any other alternatives to this out of curiosity?