调用spring自动刷新token接口,返回431 Request Header Fields Too Large

Blade 未结 3 1446
1241843379
1241843379 2020-12-02 22:03
悬赏:10

一、该问题的重现步骤是什么?

1. 系统调用http://localhost:1888/api/blade-auth/oauth/token?接口时,返回431 Request Header Fields Too Large错误

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

因为是什么?怎么修改


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex商业授权版


四、请提供详细的错误堆栈信息,这很重要。

http://localhost:1888/api/blade-auth/oauth/token?tenantId=000000&refresh_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX25hbWUiOiJ6aGFuZ2h1YW4iLCJyZWFsX25hbWUiOiJ6aCIsImF2YXRhciI6Imh0dHA6Ly80OS40Ljc5LjgwOjkwMDAvbG9naXN0aWNzcGFyay91cGxvYWQvMjAyMDEyMDIvMTUyMDg3NDgzNmQ2MmVhNDM2Y2JiNjc3ZmZjOTc3M2UucG5nIiwiYXV0aG9yaXRpZXMiOlsiaW5XYXJlSG91c2VBdWRpdFJvbGUiLCJkZXB1dHlNYW5hZ2VyUm9sZSIsImJvc3MiLCJ0aGlyZFN0ZXZlTWFuYWdlciIsImluV2FyZUhvdXNlQWJub3JtYWxSb2xlIiwiaW5XYXJlSG91c2VPblNoZWxmUm9sZSIsImx1LWxlYWRlciIsIm1hbmFnZXIiLCJsdS1waWNrZXIiLCJociIsIndhcmVob3VzZSIsImx1LXNoZWxmZXIiLCJ3aC1sZWFkZXIiLCJsb2FkLXVubG9hZCIsImFkbWluaXN0cmF0b3IiLCJpbldhcmVIb3VzZUNoZWNrUm9sZSIsImluV2FyZUhvdXNlUXVhbGl0eVJvbGUiLCJ3aC1zdG9yZWtlZXBlciIsImZpbmFuY2VSb2xlIiwidXNlciIsIm91dHB1dFBpY2tpbmdSb2xlIl0sImNsaWVudF9pZCI6InNhYmVyIiwicm9sZV9uYW1lIjoiYWRtaW5p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NzYwMiwxMzMzNTk4MDU1MzIwMDE4OTQ1Iiwic2NvcGUiOlsiYWxsIl0sIm5pY2tfbmFtZSI6InpoYW5naHVhbiIsImF0aSI6ImQ4NWYwOTc4LTAzMGEtNDdlMy1iYzkxLTM0NDg5YzQ3MmNmNSIsIm9hdXRoX2lkIjoiIiwiZGV0YWlsIjp7InR5cGUiOiJ3ZWIifSwiZXhwIjoxNjA3NTAzODA1LCJkZXB0X2lkIjoiMTEyMzU5ODgxMzczODY3NTIwMSwxMzMzOTUyMjY4NTA4MDk0NDY1IiwianRpIjoiYjRhOTkzZjItNDUxZS00NzVlLTkxODItZGQxMmQ2ZGE4ZGRiIiwiYWNjb3VudCI6InpoYW5naHVhbiJ9.5PiQMrEWxbnOi5PjmG92-vn_PV08cSNKWdMN1qBPQXM&grant_type=refresh_token&scope=all

五、若有更多详细信息,请在下面提供。

3条回答
  •  admin
    admin (楼主)
    2020-12-02 23:48

    refresh_token的值超出了请求体,需要把加入token的变量去掉一些,这样token的串就可以通过请求了。

    至于去掉token的一些字段后,后续如果要在后端获取,可以通过userId到缓存取,然后在进行赋值

    作者追问:2020-12-02 23:48

    配置token变量的类在哪里?

    回答: 2020-12-02 23:48

    在这里

    image.png

提交回复