🐛 Fixing a bug. 授权码登录时 requireProofKey 设置为false

This commit is contained in:
aeizzz committed 2023-01-28 11:01:23 +08:00
1 parent 997b926611
commit 859a049646
1 file changed
+1 -1
@@ -113,7 +113,7 @@ public class PigRemoteRegisteredClientRepository implements RegisteredClientRepo
// 注入扩展配置
Optional.ofNullable(clientDetails.getAdditionalInformation()).ifPresent(ext -> {
Map map = JSONUtil.parseObj(ext).toBean(Map.class);
builder.clientSettings(ClientSettings.withSettings(map)
builder.clientSettings(ClientSettings.withSettings(map).requireProofKey(false)
.requireAuthorizationConsent(!BooleanUtil.toBoolean(clientDetails.getAutoapprove())).build());
});