File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
config/src/main/java/org/springframework/security/config/oauth2/client Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,23 @@ public Builder getBuilder(String registrationId) {
87
87
88
88
},
89
89
90
+ X {
91
+
92
+ @ Override
93
+ public Builder getBuilder (String registrationId ) {
94
+ ClientRegistration .Builder builder = getBuilder (registrationId ,
95
+ ClientAuthenticationMethod .CLIENT_SECRET_POST , DEFAULT_REDIRECT_URL );
96
+ builder .scope ("users.read" ,"tweet.read" );
97
+ builder .authorizationUri ("https://x.com/i/oauth2/authorize" );
98
+ builder .tokenUri ("https://api.x.com/2/oauth2/token" );
99
+ builder .userInfoUri ("https://api.x.com/2/users/me" );
100
+ builder .userNameAttributeName ("username" );
101
+ builder .clientName ("X" );
102
+ return builder ;
103
+ }
104
+
105
+ },
106
+
90
107
OKTA {
91
108
92
109
@ Override
You can’t perform that action at this time.
0 commit comments