InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

[FR] Add SAML login

Open matmair opened this issue 3 years ago • 4 comments

Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find similar feature request

Problem statement

Allauth does not contain a provider for saml by default.

Suggested solution

Add https://github.com/adevolutio/allauth_saml2 and add ENVs for adding SAML and OIDC/OpenID connections so setting stuff up via docker/k8 etc is easier.

Describe alternatives you've considered

Current stack is fine.

Examples of other systems

gooutline, docuwiki, most edu systems

Do you want to develop this?

  • [X] I want to develop this.

matmair avatar Aug 09 '22 22:08 matmair

Is it not possible to use django allauth for saml? https://django-allauth.readthedocs.io/en/latest/socialaccount/providers/saml.html?highlight=saml

DusterTheFirst avatar Sep 10 '23 14:09 DusterTheFirst

@DusterTheFirst it is but ppl seem to not be able to read the docs for allauth and InvenTree and apply them.

matmair avatar Sep 14 '23 23:09 matmair

@matmair - could you let me know the value for INVENTREE_SOCIAL_BACKENDS for SAML? I tried with allauth.socialaccount.providers.saml, the value doesn't fit and docker container - "server" and "worker" doesn't start if I use above value.

ashok-dangol avatar Apr 19 '24 05:04 ashok-dangol

Please read the docs https://django-allauth.readthedocs.io/en/latest/socialaccount/providers/saml.html?highlight=saml

matmair avatar Apr 22 '24 15:04 matmair