lexicon icon indicating copy to clipboard operation
lexicon copied to clipboard

Gandi API key method is deprecated

Open Dazeilad opened this issue 1 year ago • 2 comments

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 🙏

Dazeilad avatar Nov 29 '23 21:11 Dazeilad

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.

nuffelpop avatar Dec 19 '23 15:12 nuffelpop

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.

G-eos avatar Mar 17 '24 14:03 G-eos