jakiuncle commented on code in PR #1840:
URL: 
https://github.com/apache/incubator-streampark/pull/1840#discussion_r999601036


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/controller/PassportController.java:
##########
@@ -102,6 +110,54 @@ public RestResponse signin(
         return new RestResponse().data(userInfo);
     }
 
+    @PostMapping("signinbycasdoor")
+    public RestResponse signinByCasdoor(@NotBlank(message = "{required}") 
String code,
+                                        @NotBlank(message = "{required}") 
String state) {
+        String token = "";
+        String username = "";
+        String password = "";
+        token = casdoorAuthService.getOAuthToken(code, state);
+        CasdoorUser casdoorUser = casdoorAuthService.parseJwtToken(token);
+        User user = userService.findByName(casdoorUser.getName());
+        if (user == null) {
+            User user2 = new User();

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to