Adding more authentication backend to tethys #1016
-
I've tasked with adding a 3rd party authentication backend and a custom backend for our tethys portal. What is the best way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @binhlt0402 thank you for your question. I'm going to convert this to a discussion and respond there. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. It's actually OAuth2 from WSO2. I was thinking of doing it without touching tethys source code. After posting this question I followed the HydroShare backend code and successfully implement our own backend. |
Beta Was this translation helpful? Give feedback.
@binhlt0402 which 3rd party authentication backend do you need to implement? My first recommendation would be to review the backends that are supported out of the box with Tethys here to make sure its not one that we already support: https://docs.tethysplatform.org/en/stable/installation/production/manual/configuration/advanced/social_auth.html
Tethys Platform uses Python Social Auth and the social-auth-app-django extension for Django to implement support for 3rd party auth/single sign on. I would recommend reviewing their extensive list of supported backends: https://python-social-auth.readthedocs.io/en/latest/backends/index.html If you find the backend in that list, you can enable it in…