Correct way to safely store token/secret/etc from OAuth?

后端 未结 2 882
别那么骄傲
别那么骄傲 2020-12-28 09:39

I just started looking into OAuth and it looks really nice. I have oauth with twitter working in ruby right now.

Now I\'m wondering, what is the recommended safe wa

2条回答
  •  醉梦人生
    2020-12-28 10:12

    If you're developing a web application you can add a hidden field to the form the user submits, with some hash-like value calculated with the user.id so evil guys cannot change that value and just "guess" for an access token

提交回复
热议问题