I am creating a chrome extension, where i plan to use OAuth2 client side flow for authentication. As per the specs for both google and facebook, when i use client side flow, I get the access token as part of the hash part of the redirect_uri. Now my question is this -> what if a rogue extension transfers that access token to another extension on some other machine, which then uses that access token to get user details? I am quite novice with web development and ouath and would appreciate if somebody could clarify this doubt for me
Share
The Facebook OAuth2 implementation requires that you use SSL (https) which means that other people cannot see that token unless you explicitly give it to them outside of the browser itself (or using an evil plugin, as noted).
There’s a great post on this topic here: http://www.sociallipstick.com/?p=239