AnalogJ / lexicon

Manipulate DNS records on various DNS providers in a standardized way.
MIT License
1.48k stars 305 forks source link

Gandi API key method is deprecated #1814

Closed Dazeilad closed 1 month ago

Dazeilad commented 10 months ago

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 🙏

nuffelpop commented 10 months ago

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.

G-eos commented 7 months ago

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.