kanboard / plugin-oauth2

Generic OAuth2 authentication plugin
MIT License
27 stars 33 forks source link

Adding a Potential Fix for Issue #12 #26

Open orware opened 4 years ago

orware commented 4 years ago

Added a new link method (not sure if that's ok to do) and then added some extra checks in the authenticate() method to check and see if there may be an existing User record for the provided username, then gets the User ID for that row in the database and adds/links it to the OAuth2 User ID that is coming in from the OAuth2 authentication provider.

Not sure if this is the best way to hook into the process but it did work for my basic tests.