ruanwenjun commented on issue #16472:
URL: 
https://github.com/apache/dolphinscheduler/issues/16472#issuecomment-2292765630

   @hdygxsj Hi, thanks for your DSIP, in your design, the auth2 is used in api 
module, right?
   
   Right now in api module all login should bind to user, since ds have its own 
authority role for all api. So once we use auth2 login from third-party 
success, and then get a token, we should bind the token to a user, otherwise we 
don't know the token is bind to which ds user.
   
   So the use logic might like: 
   1. We need to create ds user in DS, and the ds user should can bind to 
third-part token e.g by username or some else.
   2. We use auth2 login from thirty and get a token, then auto login by the 
user which bind to the token.
   
   So We might need to create a table which record the mapping between 
thirty-part user and ds user, e.g. GitHub user ruanwenjun in ds user is admin.
   
   If I have misunstand please tell me know.
   


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