lexicon
lexicon copied to clipboard
Gandi API key method is deprecated
See here : https://api.gandi.net/docs/authentication/
Gandi API key method is deprecated, it now uses a Personnal Access Token method.
Should be updated in here I guess : https://github.com/AnalogJ/lexicon/blob/master/src/lexicon/_private/providers/gandi.py#L275
Thanks, from a Yunohost user 🙏
PAT uses Bearer Authentication header instead of Apikey. Adding provider option auth_token_pat would not break current configurations.
It would also be possible to differentiate PAT and Apikey by length (24 vs. 40) and set header accordingly.
For information, both API key and PAT are both working today, API key is marked as deprecated but still functional. I asked Gandi Support this week, they do not have set an end date for API key so far.