inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.15k stars 751 forks source link

[FR] Add SAML login #3509

Open matmair opened 2 years ago

matmair commented 2 years ago

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

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?

DusterTheFirst commented 1 year ago

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

matmair commented 1 year ago

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

ashok-dangol commented 5 months ago

@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.

matmair commented 5 months ago

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