d8-contrib-modules / cloudflare

Cloudflare Module for Drupal
16 stars 14 forks source link

Valid key is rejected as too long " Error message Invalid Api Key: Key should be 37 chars long." #66

Open greggles opened 5 years ago

greggles commented 5 years ago

When I input a valid key I get the error message:

Invalid Api Key: Key should be 37 chars long.

Perhaps that was for old api keys?

Lusitaniae commented 4 years ago

same

Lusitaniae commented 4 years ago

37 char are the global API keys which give full access to the Cloudflare account.

In the linked patch I check for 40 char api keys too, the new ones which allow granular permission management.

ivangrozni commented 3 years ago

@Lusitaniae did you also check if any other things has to be changed with regards to authentication? Your patch doesn't work for me.

Lusitaniae commented 3 years ago

I believe not.

In the end we (dev team actually) made a new module with only the restore IP feature, so can't tell you much more about this patch.

rmcveigh commented 3 years ago

I would like to up-vote this issue as I'm seeing the same issue with a valid API key that is 40 characters long.

Lusitaniae commented 3 years ago

please see my PR/proposed patch above and see if that works out for you @rmcveigh

rmcveigh commented 3 years ago

please see my PR/proposed patch above and see if that works out for you @rmcveigh

I'll look at it. Seems like tests are failing though. FWIW.