gpt4 book ai didi

node.js - 关于任意数据

转载 作者:太空宇宙 更新时间:2023-11-04 01:05:49 24 4
gpt4 key购买 nike

什么是任意数据?我在这里找到了https://www.dropbox.com/developers/core/docs#oa2-authorize

 state Up to 200 bytes of arbitrary data that will be passed back to your redirect 
URI. This parameter should be used to protect against cross-site request forgery
(CSRF). See Sections 4.4.1.8 and 4.4.2.5 of the OAuth 2.0 threat model spec.

那么我为 state 发送什么类型的值?我正在使用nodejs。

最佳答案

“任意数据”意味着任何东西。字符串、数字、二进制数据等等。

由于它要用作 CSRF token ,因此它需要是与用户 session 关联的不可预测的值。 Here are some guidelines关于 CSRF 代币。

关于node.js - 关于任意数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23179547/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com