snail-cli icon indicating copy to clipboard operation
snail-cli copied to clipboard

`auth anon` may soon require recaptcha

Open wh0 opened this issue 2 years ago • 2 comments

$ snail auth anon
Error: Glitch users anon response 500 not ok

and trying it in the browser shows it posting a new recaptcha field in the body :scream:

wh0 avatar Mar 12 '22 04:03 wh0

You know what's weird, I tried this again just now, and it worked >_>

$ snail auth anon
$ snail whoami -n
43357466
$ curl -vX POST https://api.glitch.com/v1/users/anon
*   Trying 52.203.201.18...
* Connected to api.glitch.com (52.203.201.18) port 443 (#0)
* found 129 certificates in /etc/ssl/certs/ca-certificates.crt
* found 518 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: glitch.com (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: CN=glitch.com
*        start date: Tue, 01 Feb 2022 00:00:00 GMT
*        expire date: Thu, 02 Mar 2023 23:59:59 GMT
*        issuer: C=US,O=Amazon,OU=Server CA 1B,CN=Amazon
*        compression: NULL
* ALPN, server accepted to use http/1.1
> POST /v1/users/anon HTTP/1.1
> Host: api.glitch.com
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Mon, 28 Mar 2022 00:10:03 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 704
< Connection: keep-alive
< x-powered-by: Express
< set-cookie: GlitchAuth=(redacting this lol); Max-Age=31536000; Path=/; Expires=Tue, 28 Mar 2023 00:10:03 GMT; HttpOnly; Secure; SameSite=None
< etag: W/"2c0-kyQAq2nMcf35t3QIq6bJSCeD1gk"
< vary: Accept-Encoding
< 
* Connection #0 to host api.glitch.com left intact
{"isSupport":false,"isInfrastructureUser":false,"createdAt":"2022-03-28T00:10:03.185Z","updatedAt":"2022-03-28T00:10:03.185Z","persistentToken":"(redacting this lol)","color":"#b6ed78","hasCoverImage":false,"twoFactorEnabled":false,"accountLocked":false,"loginAttempts":0,"passwordEnabled":false,"suspendedReason":"","id":43357542,"githubId":null,"githubToken":null,"avatarUrl":null,"login":null,"name":null,"location":null,"facebookId":null,"facebookToken":null,"description":"","coverColor":null,"thanksCount":0,"utcOffset":null,"avatarThumbnailUrl":null,"featuredProjectId":null,"googleId":null,"googleToken":null,"slackId":null,"slackToken":null,"slackTeamId":null,"suspendedAt":null}

why

not complaining tho

wh0 avatar Mar 28 '22 00:03 wh0

gonna rename and remove label

wh0 avatar Apr 10 '22 19:04 wh0