inveniosoftware / invenio-saml

SAML support for Invenio.
https://invenio-saml.readthedocs.io
MIT License
3 stars 10 forks source link

fix: add check before linking user #35

Closed rekt-hard closed 1 year ago

rekt-hard commented 1 year ago

refactor: use class method instead of manual query

:heart: Thank you for your contribution!

Description

closes #34 Add check before linking user. This will make sure to only run the query, if the user has not been linked.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Third-party code

If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.