OTA-Insight / djangosaml2idp

SAML 2.0 Identity Provider in Django
Apache License 2.0
104 stars 96 forks source link

Ability to define custom SAML Server class #98

Open Amertz08 opened 4 years ago

Amertz08 commented 4 years ago

Would be nice to be able to define a custom Server class used out of the saml2 library. We use AWS XRay as an APM and often have to override methods on classes in packages to annotate the values we want to see.

Maybe something like this.

# settings.py
SAML2_SERVER_CLASS = "path.to.MyCustomClass"

Then IdPHandlerViewMixin could use the custom one or default to the standard class.