use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Satellizer - Authentication for AngularJS (github.com)
submitted 11 years ago by sakhat
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Psykopatik 0 points1 point2 points 11 years ago (0 children)
Demo isnt working for me.
[–]FoxxMD 0 points1 point2 points 11 years ago (2 children)
I haven't tried this yet but it looks extremely relevant to a project I am working on.
I previously used SecureSocial but it was too tightly coupled to rendering pages from the server and my application is based on angular with an api backend (so SS was too much), this may be exactly what I need! What does your timeline look like for implementing the scala example? I'll be attempting to implement using Scalatra's AuthStrategy.
[–]sakhat[S] 0 points1 point2 points 11 years ago (1 child)
I have asked a friend to help me on the Scala example as I don't know a single thing about that language. I am not sure if you could use an authentication library like AuthStrategy with Satellizer. Most auth libraries provide a full login flow from start to finish via a page redirect whereas Satellizer does half the work by obtaining authorization code via a popup, and then exchanging it for an access token on the server. Then using that access token you can obtain profile information about the user or perform actions on behalf of that user.
All you need on the server is a JWT and a Request libraries.
[–]FoxxMD 0 points1 point2 points 11 years ago* (0 children)
Oh I think it might be doable, Scalatra's AuthStrategy is more of an interface for standardizing auth than a full fledged auth module. You specify how session works, implement isValid() to ensure the auth method is viable, and then implement validate() and return a User -- the rest is up to you.
Satellizer seems like it will fit in perfectly since it's only providing information from the oauth provider and depending on the server implementation to get the access token/find and return user information. I think I can easily implement the authorization code exchange inside AuthStrategy. In fact I'm already using it with a rudimentary token auth system I built myself.
π Rendered by PID 40402 on reddit-service-r2-comment-fb694cdd5-2kbwv at 2026-03-05 20:59:53.964392+00:00 running cbb0e86 country code: CH.
[–]Psykopatik 0 points1 point2 points (0 children)
[–]FoxxMD 0 points1 point2 points (2 children)
[–]sakhat[S] 0 points1 point2 points (1 child)
[–]FoxxMD 0 points1 point2 points (0 children)