-
Hi, I would like to customize _extract function of SAMLProvider, in order to perform the following two actions:
This can work if I copy the entire saml directory as something like custom_saml, and then add this on the INSTALLED_APPS, but I'm wondering whether there a better way. Or maybe it makse sense to add _extract to be easily overriden, as the rest in https://docs.allauth.org/en/dev/account/adapter.html ? Thanks and regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's undocumented, but, you can override the provider class like so:
Then, your custom provider class can simply inherit from the original one and tweak where needed. |
Beta Was this translation helpful? Give feedback.
It's undocumented, but, you can override the provider class like so:
Then, your custom provider class can simply inherit from the original one and tweak where needed.