teamhanko / hanko

Authentication and user management system optimized for passkeys
https://hanko.io
Other
5.6k stars 790 forks source link

fix: fix saml login for existing users #1434

Closed FreddyDevelop closed 3 months ago

FreddyDevelop commented 3 months ago

Description

With the introduction of the allow_linking parameter for the thirdparty social provider the saml login is broken when an account for the email already exists.

Implementation

Only check the allow_linking parameter while linking to an already existing user when it is not a saml provider.

Tests

Configure a saml provider and try to login with an already existing user.