3👍
You have to implement a SAML service provider (SP). There are multiple approaches for doing so. One of these options is embedding code in your application so that it acts as a SAML SP. Assuming that you implement enough of SAML SP “features”, you would then be able to generate the SAML metadata from your application and use it to configure SP/IdP trust in your identity provider.
The original SAML/Django library was djangosaml2 but it’s no longer maintained; its fork is more or less active. djangosaml2 is based on PySaml2 which does support generation of SP metadata.
Source:stackexchange.com