jakiuncle commented on code in PR #1840:
URL:
https://github.com/apache/incubator-streampark/pull/1840#discussion_r997115554
##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/controller/PassportController.java:
##########
@@ -102,6 +109,46 @@ public RestResponse signin(
return new RestResponse().data(userInfo);
}
+ @PostMapping("signinbycasdoor")
+ public RestResponse signinByCasdoor(@NotBlank(message = "{required}")
String code,
+ @NotBlank(message = "{required}")
String state) throws Exception {
+ String token = "";
Review Comment:
i see this.userService.updateLoginTime(username) and
authenticator.authenticate(username, password) in sigin method also throws
Exception so that i think this.userService.updateLoginTime(username) and
userService.createUser(user2) throws Exception is ok
##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/controller/PassportController.java:
##########
@@ -102,6 +109,46 @@ public RestResponse signin(
return new RestResponse().data(userInfo);
}
+ @PostMapping("signinbycasdoor")
+ public RestResponse signinByCasdoor(@NotBlank(message = "{required}")
String code,
+ @NotBlank(message = "{required}")
String state) throws Exception {
+ String token = "";
Review Comment:
Am I right?
--
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]