plugin-oauth2 icon indicating copy to clipboard operation
plugin-oauth2 copied to clipboard

Adding a Potential Fix for Issue #12

Open orware opened this issue 3 years ago • 0 comments

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.

orware avatar Sep 30 '20 18:09 orware