Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
greggles opened this issue Sep 11, 2019 · 7 comments

Comments

@greggles
Copy link

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
Copy link

same

@Lusitaniae
Copy link

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
Copy link

@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
Copy link

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
Copy link

rmcveigh commented Jul 22, 2021

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
Copy link

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

@rmcveigh
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants