netlify-cms-github-oauth-provider icon indicating copy to clipboard operation
netlify-cms-github-oauth-provider copied to clipboard

Authentication Error: Invalid state key

Open MatSemCVMaker opened this issue 4 years ago • 14 comments

I'm trying to set a netlify oauth by running your server. I've created the oauth in github, and set credential and secret on the server, with localhost:8080 as origin. I then added the server as the backend of my cms configuration on the frontend app. I can then login through github from the admin panel, but the callback just show an authentication error due to the following error: invalid state key. I can't understand exactly what's the error and if i'm missing something

MatSemCVMaker avatar Apr 07 '21 13:04 MatSemCVMaker

I have same problem

One1L avatar Jul 08 '21 22:07 One1L

same to me

gergiu avatar Mar 06 '22 10:03 gergiu

Same error. Were you able to resove?

couldbewoese avatar Jun 10 '22 19:06 couldbewoese

Are you trying to call OAuth from localhost without tunnel from public IP?

vencax avatar Feb 11 '23 21:02 vencax

can't sign in keeps saying Authentication error invalid state key

Odipainter01 avatar May 29 '23 10:05 Odipainter01

hello same problem too keep saying invalid key state

theo-fride avatar Jul 04 '23 09:07 theo-fride

same problem

Joining8988 avatar Jul 05 '23 04:07 Joining8988

Hi all, I am missing information about environment setup you have. The crucial is whether you run this provider on your localhost or public IP. on localhost it will never functioning because after login process on github side, github call the provider from internet side. And localhost is not obviously visible from internet.

vencax avatar Jul 05 '23 10:07 vencax

yrr koi toh bata do 2 din se phasa hu ??

yashgupta5532 avatar Jan 29 '24 04:01 yashgupta5532

I have a same problem

ConnectPrakash avatar Mar 05 '24 04:03 ConnectPrakash

same problem

SadamHussain22 avatar Apr 26 '24 18:04 SadamHussain22

Authentication Error

Authenticating failed due to the following error: Invalid state key

Why is this the only netlify I've been working on for days

Tofu-Xx avatar Aug 13 '24 23:08 Tofu-Xx