Earlier quoted context omitted.
Usually the token kept in memory is one distributed by the application and is not that which the services send back. This allows greater restriction on actions and make it far easier to revoke effectively
Usually the token kept in memory is one distributed by the application and is not that which the services send back. What is application in that sentence? The API? Isn't that what this lib does? A client-side Javascript SDK for authenticating with OAuth2 web services and querying their REST API's. - I assume the API issues the token - This lib receives it and uses it for subsequent calls - The token is destroyed when…
HelloJS – Client-side OAuth for JS
41–50 of 58 posts
Re: HelloJS – Client-side OAuth for JS
#42Earlier quoted context omitted.
From my understanding this is also the case ie. don't do OAuth client (end-user/browser) side.
If the client passes the server a token which the server can verify against the third-party service providing the login, I don't see a reason not to trust the client. I'm very interested to hear what kind of security problems this could bring - if they can be mitigated, using this library would be very convenient for some projects.
Re: HelloJS – Client-side OAuth for JS
#43Re: HelloJS – Client-side OAuth for JS
#44Oh my god the kerning on that font.
Re: HelloJS – Client-side OAuth for JS
#45Hmm, I don't see any mention of security. I can't find the source, but I remember reading that if you wanted to restrict access to certain pages on your site to authenticated users in a single page app it was more secure to do it server side. Security experts feel free to chime in.
I believe this is only possible since OAuth2. One important aspect is that the API provider registers the consumer's key along with their domain, so API requests using that key are only valid coming from that domain.
Re: HelloJS – Client-side OAuth for JS
#46Could you explain why I should favor client-side auth over server-side auth, especially if I want to do some action on behalf of the user, like generating word-clouds of their posts, etc. And what makes helloJS different from oauth.io, which has open-sourced their server?
Re: HelloJS – Client-side OAuth for JS
#47Could you explain why I should favor client-side auth over server-side auth, especially if I want to do some action on behalf of the user, like generating word-clouds of their posts, etc. And what makes helloJS different from oauth.io, which has open-sourced their server?
may be if you change view on what and where software should be doing it might click together. i.e. for example all real work happens on client and client app offloads only storage of computed data to your servers via separate authentication. this is shift of paradigm back again to "desktopish apps", but still quite viable in certain situations.
Re: HelloJS – Client-side OAuth for JS
#48Re: HelloJS – Client-side OAuth for JS
#49Does this mean in Facebook, Google etc the grant token and the access token are identical?
Re: HelloJS – Client-side OAuth for JS
#50Earlier quoted context omitted.
Security holes such as? Please elaborate.
From what I gather you are leaving the api_tokens for the services in local memory. This means that the user or anyone else that can get there hands on the token can act on the service providers api masquerading as your application.
I'm baffled this actually works. The entire idea is that the `client_id` can be disclosed to the user (via the login redirect) because the `client_secret` is required to verify the application's identity.