Javascript based oauth exposes the client id of the application and it trusts only on the domain requesting the access token. The domain name can be forged with a dns hijack(or a virus affecting /etc/hosts). Then why is javascript based oauth supported by Google, facebook for clients not using HTTPS ? Or Am I missing something?
Take the 2-minute tour
×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.
OAuth 2.0 pretty much requires HTTPS, as it doesn't have any means to make tokens secure. So, if google and facebook actually allow you to use OAuth2 over plain HTTP that is bad. Are you sure that is the case? I thought both of them are https-only for quite some time. On the other hand, OAuth1 works fine over plain HTTP as it has it's own layer of secure digital signatures |
|||||||||||||||||||||
|