gpt4 book ai didi

azure - Azure Active Directory 给出的 OAuth token 的最大长度是多少(以字节为单位)

转载 作者:行者123 更新时间:2023-12-02 07:50:22 35 4
gpt4 key购买 nike

我遇到的情况是,我必须将 OAuth token 存储在安全存储中,允许的最大长度为 255 个字符。因此,我想知道 Azure 提供的 OAuth token 的最大长度。是否小于 255?

最佳答案

Azure AD 返回的 OAuth token 本质上是 base64 编码的 JWT token ,目前没有定义最大长度(引用:What is the maximum size of JWT token?)。

话虽如此,根据我的经验,它们肯定超过 255 个字符。请参阅下面的示例:

eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1eFI6Ik1uQ19WWmNBVGZNNXBPWWlKSE1iYTlnb0VLWSIsImtpZCI6Ik1uQ19WWmNBVGZNNXBPWWlKSE1iYTlnb0VLWSJ9.eyJhdWQiOiJodHRwczovL21nopFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9iYWYzOTI3Yi1iMWY1LTRjL1MtYWY4NC0xZDEyZjE1NWY4NGMvIiwiaWF0IjoxNDQwMzMwNDc0LCJuYmYiOjE0NDAzMzA0NzQsImV4cCI6MTQ0MDMzNDM3NCwidmVyIjoiMS4wIiwidQrSIjoiYmFmMzkyN2ItYjFmNS00YzdjLWFmODQtMWQxMmYxNTVmODRjIiwib2lkIjoiYjQ5ZDY5MWYtOGRkZS00MjgzLWJjZTUtMjY0MWFlYmU4ZWMwIiwiZW1haWwiOiJnYXVyYXZAY2xvdWRwb3J0YW0uY29tIiwicHVpZCI6IjEwMDMwMDAwOEIxNTcyQUYiLCJpZHAiOiJsaXZlLmNvbSIsImFsdHNlY2lkIjoiMTpsaXZlLmNvbTowMDAzQkZGRENDOUI3ODc0Iiwic3ViIjoiX2pxQWJKV3FISW50WFVkaWlvbE16ZDVXUDV6bi1ObFdTcklaN1ZwbkZ5byIsImdpdmVuX25hbWUiOiJHYXVyYXYiLCJmYW1pbHlfbmFtZSI6Ik1hbnRyaSIsIm5hbWUiOiJHYXVyYXYgTWFudHJpIiwiYW1yIjpbInB3ZCJdLCJncm91cHMiOlsiNWExODk0NzctNTI5NS12ZGI5LWIxZWMtMzMxNDk0MjQzZTUwIl0sInVuaXF1ZV9uYW1lIjoibGl2ZS5jb20jZ2F1cmF2QGNsb3VkcG9ydGFtLmNvbSIsIndpZHMiOlsiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIl0sImFwcGlkIjoiNjM2YmE0MTQtNjhmMC00Njg2LTg2N2ItMjlkNzBjYjQyODQ5IiwiYXBwaWRhY3IiOiIxIiwic2NwIjoidXNlcl9pbXBlcnNvbmF0aW9uIiwiYWNyIjoiMSIsImlwYWRkciI6IjIyMy4xNzYuMTQ4LjE5DWJ9.UcAFjUnbmfqqbPcMt99sEs5nfXXJIyXKIeXZJz04Qyuz7BXco5LbVibMxmNisPGlL2qQYB0XFIuVyUk0PwiCuAIlj1f5flPLyW7K339urANTCyJn4KCAstq838BeY32rCPUIDfKc5fCbxoSBNkwhd3tXjIaV60BzFiK4a1scjge7BHJrqYsnC22CC88R39N77vIQTfGhNK83IaRdEIbmgr5-Wjy3yjRJ-qLQ6A5insNxTc-hgbe-PaxBhO8Rvu3xBCUfJTo77XXrHJKLx5tZVp2m28bs53wMThN0v8eVqaWn3bP1o_AYSxMJlb7EeIZ_wyzC3aPWRp_LNNSNgyp4xg

关于azure - Azure Active Directory 给出的 OAuth token 的最大长度是多少(以字节为单位),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32183696/

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