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

   > Hi @ruanwenjun , In the existing implementation, after the successful 
authorization of OAuth2, it will obtain the username from the oauth provider's 
user info api and judge whether the user already exists in ds according to the 
username. If it does exist, it will create a session in ds and use the username 
to complete the login to support rights management function inside dolphin. If 
it does not exist, it will create a new user in ds and create session.
   > 
   > We can also modify it so that the created user after logging in with 
OAuth2 needs to be bound to an existing user in ds, so we need to maintain a 
mapping relationship. If necessary, we can discuss in detail at the ds's 
meeting.
   
   Ok, if we can directly use username as the mapping it's OK to me, and it's 
better don't auto create user in ds, since only admin can create user, the 
design should provide the whole login logic.


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