hdygxsj opened a new pull request, #14743:
URL: https://github.com/apache/dolphinscheduler/pull/14743

   <!--Thanks very much for contributing to Apache DolphinScheduler, we are 
happy that you want to help us improve DolphinScheduler! -->
   
   ## Purpose of the pull request
   
   support oauth2 login
   and close issue #14056
   
   
   ## How users use oauth2
   
   First create an Oauth2 app in github(Users can also use their own OAuth2 
authorization server, this is just an example)
   
![image](https://github.com/apache/dolphinscheduler/assets/35210666/dfba9b9b-1f3f-4663-8832-49c2b1245c1a)
   
   Configure dolphinscheduler to support OAuth2
   
![b4e7ed4528bc626f950a6912ed007ae](https://github.com/apache/dolphinscheduler/assets/35210666/ce2cce17-2b09-4274-8045-719755ff6cf3)
   
   A button for oauth2 login will appear on the login interface after enabling 
oauth2
   
![36a766de365af872cc725ad6ab7c839](https://github.com/apache/dolphinscheduler/assets/35210666/88298ba9-c422-4819-81ab-20f4c4f87bc7)
   
   Click the github button to jump to the authorization page
   
![8618c5153f84b67e5ca1907a7cdbc8a](https://github.com/apache/dolphinscheduler/assets/35210666/9fbe43c1-70fb-4def-8510-24b9b632bb4a)
   
   Jump to Homepage after authorization
   
   
![775e0b6615ed662eeb86b69f88c8a88](https://github.com/apache/dolphinscheduler/assets/35210666/5bcf6d7e-0a59-4a1b-8594-7cc739dcaceb)
   
   ## Brief change log
   
   front end:
   * The login page will get the oauth2 providers
   * Clicking the button of oauth2 will jump to the authorization page and 
clear the current cookie
   
   backend:
   * Added an api to clear cookies
   * Added an api to get OAuth2 providers
   * Added an api that gets access_token and user information and redirects to 
the home page
   In this api, after the user successfully authorizes using oauth2, if the 
user does not exist, a user will be created automatically
   * Added a Configuration for automatic assembly oauth2 configuration
   
   


-- 
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