Skip to content

EMail host is required for SSO self registration #4553

Description

@p-fruck

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

The CustomSocialAccountAdapter extends the RegistratonMixin which overrides the is_open_for_signup method. In my opinion, the check performed in the function should not be the intended behavior for Social Accounts.

Steps to Reproduce

  1. Configure a social account for your inventree instance
  2. Make sure no email host is configured
  3. Try to sign in for the first time with a social account user and experience the "Sign in Closed" page.

Expected behaviour

In my opinion, it should not be required to configure an email host in order to enable SocialAccount self registration.

My personal use case:
I am currently running InvenTree on my local machine and played around with the OpenID config. It took me forever to figure out why my social login did not work. I finally solved it by specifying a dummy value INVENTREE_EMAIL_HOST = localhost.

Do you think it is possible to disable the email host check if a social account is used?

Deployment Method

  • Docker
  • Bare metal

Version Information

Master branch

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis is a questionsetupRelates to the InvenTree setup / installation process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions