Adding more authentication backend to tethys #1016
Answered
by
swainn
binhlt0402
asked this question in
Q&A
|
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? |
Answered by
swainn
Mar 12, 2024
Replies: 2 comments 1 reply
|
Hi @binhlt0402 thank you for your question. I'm going to convert this to a discussion and respond there. |
1 reply
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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…