开发者

twitter oauth with single-use access token

开发者 https://www.devze.com 2023-03-27 01:14 出处:网络
Is it possible to authenticate from a web page without any server-sid开发者_C百科e program?I would like to use javascript (and jsonp with query-string

Is it possible to authenticate from a web page without any server-sid开发者_C百科e program? I would like to use javascript (and jsonp with query-string oauth, I am guessing) and hard code my access_token in a javascript variable. I know this would be a major security no-no. I have no intention of putting the webpage on the internet. I simply would like to know if my intention is even possible. It would be greatly appreciated if someone could put aside the security issue for a moment and answer my question. Thanks!


That's pretty easy to do. You just need an OAuth 1.0 JS library to make authenticated request from JS. Note that you need to include both the access token and client credentials in the application - so it's double insecure.

0

精彩评论

暂无评论...
验证码 换一张
取 消