I wonder: why Java and Spring? Do you consider other Java implementations?
Show HN: Satellizer – Authentication for AngularJS
31–38 of 38 posts
Re: Show HN: Satellizer – Authentication for AngularJS
#32This is very helpful. How about handling validation and errors (e.g. unique account)?
It seems like a lot of this heavy lifting is left to api / backend implementors and is not explicitly addressed. I don't think that is a short-coming of the module but perhaps some additional documentation on best practices could be helpful.
Re: Show HN: Satellizer – Authentication for AngularJS
#33So, how would this work if I'm using Python-Social-Auth as the provider as an interface to Django? Most sites implementing social auth don't do it in the client directly, but as an interface to the oauth and then just trusting that authentication as canon, while simultaneously invoking a non-oAuth login() method at the tail end of the oAuth login. Not sure how this relates directly. That said, this is a FANtastic, an…
Re: Show HN: Satellizer – Authentication for AngularJS
#34So, how would this work if I'm using Python-Social-Auth as the provider as an interface to Django? Most sites implementing social auth don't do it in the client directly, but as an interface to the oauth and then just trusting that authentication as canon, while simultaneously invoking a non-oAuth login() method at the tail end of the oAuth login. Not sure how this relates directly. That said, this is a FANtastic, an…
Satellizer is designed to be used without auth libraries such as Passport (Node), OmniAuth (Ruby). On Python-side all you need is the requests library. It is so by design to avoid relying on third-party libraries. Additionally, if I were to implement it with a server-side auth library there is no choice but to use full page redirects, i.e redirect to Facebook, authorize the app, redirect back to the app.
https://github.com/omab/python-social-auth/issues/68
That said, I'm working through piecing that together with satellizer, and I wanted to give you a huge thanks for including the server examples in so many languages, which ought to be of use.
Re: Show HN: Satellizer – Authentication for AngularJS
#35This is a very, very nice project -- almost enough to pull me back from ReactJS back to AngularJS. Almost. One question: they say it can be adapted to any Oauth1 or 2 provider, but doesn't the Oauth 2 provider have to support the Implicit Flow for this type of client-side app to work? If so, is it true that Github doesn't support Implicit flow? (this is what I've read, and I've not found much on the web otherwise abo…
I just implemented a GitHub sign-in and it took me only 8 minutes because on the server it was mostly copy-&-paste of the Facebook sign-in and on the client it's just:
$authProvider.oauth2({
name: 'github',
clientId: 'xxxxxx',
url: '/auth/github',
authorizationEndpoint: 'https://github.com/login/oauth/authorize',
redirectUri: window.location.origin
});
Thank you. I like React too so perhaps someone could implement something like Satellizer that integrates with React.Re: Show HN: Satellizer – Authentication for AngularJS
#36This is a very, very nice project -- almost enough to pull me back from ReactJS back to AngularJS. Almost. One question: they say it can be adapted to any Oauth1 or 2 provider, but doesn't the Oauth 2 provider have to support the Implicit Flow for this type of client-side app to work? If so, is it true that Github doesn't support Implicit flow? (this is what I've read, and I've not found much on the web otherwise abo…
Satellizer gives you an illusion that you're doing an implicit grant flow by opening a popup and then magically you are signed-in. But authorization process is handled on the server: https://github.com/sahat/satellizer/blob/master/examples/ser... I just implemented a GitHub sign-in and it took me only 8 minutes because on the server it was mostly copy-&-paste of the Facebook sign-in and on the client it's just: $auth…
>I like React too so perhaps someone could implement something like Satellizer that integrates with React.
Indeed. And such a project could still make use of the server code of Satellizer, I'd imagine.
Re: Show HN: Satellizer – Authentication for AngularJS
#37Re: Show HN: Satellizer – Authentication for AngularJS
#38I may be paranoid, but is there any security concern about doing authentification on the frontend ? Wouldn't the user be able to see exactly what is going on and intercept some sensitive information ?
http://self-issued.info/docs/draft-ietf-oauth-json-web-token...
Additionally, there are quite a few benefits to using Token auth over cookie-based auth as well, such as not having to worry about CRSF protection:
https://auth0.com/blog/2014/01/07/angularjs-authentication-w...
I'd say cookies have a greater risk of being intercepted and hijacked than a token-based system.
But every implementation has flaws even if the underlying concept has been vetted. But if you're protecting sensitive information, it's always good to hire a security expert to test your systems.