Skip to content

Instantly share code, notes, and snippets.

@dougbeal
Last active July 12, 2018 04:26
Show Gist options
  • Save dougbeal/2c4a9c2b953feee91b43906a98d093b2 to your computer and use it in GitHub Desktop.
Save dougbeal/2c4a9c2b953feee91b43906a98d093b2 to your computer and use it in GitHub Desktop.
https://πŸ•ΈπŸ’.ws indieauth to wordpress login error
The authorization server returned an invalid state parameter
[ 'Verifying ',
'WrxIqLF4eixqnpLnFpmf3A46UxA6KzTIfjVpRqa1ZDjac58sjt3CrujnifmVTvEa27oP3Y41Qt6g41ruxJewoTpJvKFRV2PiAhohOJ4nWuPqswKcfGSqBmfPvMhr9izu',
' with ',
{ me: 'https://dougbeal.com/',
token: '',
authEndpoint: 'https://dougbeal.com/wp-json/indieauth/1.0/auth',
tokenEndpoint: '',
micropubEndpoint: '',
clientId: 'https://xn--sr8hvo.ws/',
redirectUri: 'https://xn--sr8hvo.ws/indieauthhandler',
state: 'REDACTED' } ]
Error: Can't set headers after they are sent.
at validateHeader (_http_outgoing.js:491:11)
at ServerResponse.setHeader (_http_outgoing.js:498:3)
at ServerResponse.header (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:767:10)
at ServerResponse.location (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:884:15)
at ServerResponse.redirect (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:922:18)
at indieauthn.verifyCode.then.me (/app/lib/indieauth-authn.js:95:18)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:4711) UnhandledPromiseRejectionWarning: Error: Can't set headers after they are sent.
at validateHeader (_http_outgoing.js:491:11)
at ServerResponse.setHeader (_http_outgoing.js:498:3)
at ServerResponse.header (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:767:10)
at ServerResponse.send (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:170:12)
at ServerResponse.json (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:267:15)
at ServerResponse.send (/rbd/pnpm-volume/6e8ff9d0-2467-4804-a6d0-638ce5ab6028/node_modules/.registry.npmjs.org/express/4.16.3/node_modules/express/lib/response.js:158:21)
at indieauthn.verifyCode.then.catch.err (/app/lib/indieauth-authn.js:99:30)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:4711) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 9)
wordpress_1 | 172.18.0.4 - 12/Jul/2018:03:44:51 +0000 "GET /index.php" 200
wordpress_1 | 172.18.0.4 - 12/Jul/2018:03:44:54 +0000 "POST /wp-login.php" 302
webserver-wordpress_1 | 71.212.132.198 - - [12/Jul/2018:03:44:54 +0000] "POST /wp-login.php?client_id=https://xn--sr8hvo.ws/&redirect_uri=https://xn--sr8hvo.ws/indieauthhandler&state=REDACTED&me=https://dougbeal.com/&response_type=id&action=indieauth HTTP/1.1" 302 5 "https://dougbeal.com/wp-login.php?redirect_to=https%3A%2F%2Fxn--sr8hvo.ws%2Findieauthhandler&reauth=1&action=indieauth&_wpnonce=8dff1ee448&response_type=id&client_id=https://xn--sr8hvo.ws/&me=https://dougbeal.com/&state=REDACTED" "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1" "-"
wordpress_1 | 172.18.0.4 - 12/Jul/2018:03:44:54 +0000 "POST /index.php" 200
webserver-wordpress_1 | 35.174.11.196 - - [12/Jul/2018:03:44:54 +0000] "POST /wp-json/indieauth/1.0/auth HTTP/1.1" 200 44 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" "-"
wordpress_1 | 172.18.0.4 - 12/Jul/2018:03:45:04 +0000 "POST /wp-admin/admin-ajax.php" 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment