ESPRI-Mod / synda

ESGF Downloader (this is a deprecated repository, the tool has now moved to https://github.com/ESGF/esgf-download)
https://espri-mod.github.io/synda/
21 stars 11 forks source link

OAuth 2.0 authentication support needed for ESGF Future Architecture #186

Open philipkershaw opened 3 years ago

philipkershaw commented 3 years ago

Hi @AtefBN, @glevava,

I wanted to check with you how easy it might be to add support for OAuth 2.0 access tokens for Synda?

For the ESGF Future Architecture we have integrated OAuth 2.0 and we plan to use this authentication method as a complete replacement to user certificate-based auth for wget scripts.

It should be relatively straightforward to make the changes. The Synda client would need to include an access token in the HTTP Authorization header. You might also need to integrate a way to store and use refresh tokens in order to get a new access token should the existing one expire.

AtefBN commented 2 years ago

Hi @philipkershaw we were discussing the OAuth2 integration in synda in a meeting this morning. We are very eager to be able to include this in synda code, is there any documentation/examples that could help us test this out?