File tree 1 file changed +13
-1
lines changed
oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/jackson2
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -56,9 +56,21 @@ public ClientAuthenticationMethod convert(JsonNode jsonNode) {
56
56
if (ClientAuthenticationMethod .CLIENT_SECRET_POST .getValue ().equalsIgnoreCase (value )) {
57
57
return ClientAuthenticationMethod .CLIENT_SECRET_POST ;
58
58
}
59
+ if (ClientAuthenticationMethod .CLIENT_SECRET_JWT .getValue ().equalsIgnoreCase (value )) {
60
+ return ClientAuthenticationMethod .CLIENT_SECRET_JWT ;
61
+ }
62
+ if (ClientAuthenticationMethod .PRIVATE_KEY_JWT .getValue ().equalsIgnoreCase (value )) {
63
+ return ClientAuthenticationMethod .PRIVATE_KEY_JWT ;
64
+ }
59
65
if (ClientAuthenticationMethod .NONE .getValue ().equalsIgnoreCase (value )) {
60
66
return ClientAuthenticationMethod .NONE ;
61
67
}
68
+ if (ClientAuthenticationMethod .TLS_CLIENT_AUTH .getValue ().equalsIgnoreCase (value )) {
69
+ return ClientAuthenticationMethod .TLS_CLIENT_AUTH ;
70
+ }
71
+ if (ClientAuthenticationMethod .SELF_SIGNED_TLS_CLIENT_AUTH .getValue ().equalsIgnoreCase (value )) {
72
+ return ClientAuthenticationMethod .SELF_SIGNED_TLS_CLIENT_AUTH ;
73
+ }
62
74
return null ;
63
75
}
64
76
You can’t perform that action at this time.
0 commit comments