flovo
6
curl -v -X POST -d 'grant_type=password&username=${username}&password=${password}&client_id=${client_id}&client_secret=${client_secret}' https://online-go.com/oauth2/token/
* Trying 104.25.35.20:443...
* TCP_NODELAY set
* Connected to online-go.com (104.25.35.20) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=CloudFlare, Inc.; CN=online-go.com
* start date: Dec 4 00:00:00 2018 GMT
* expire date: Dec 4 12:00:00 2019 GMT
* subjectAltName: host "online-go.com" matched cert's "online-go.com"
* issuer: C=US; ST=CA; L=San Francisco; O=CloudFlare, Inc.; CN=CloudFlare Inc ECC CA-2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x565210a68f30)
> POST /oauth2/token/ HTTP/2
> Host: online-go.com
> User-Agent: curl/7.65.3
> Accept: */*
> Content-Length: 246
> Content-Type: application/x-www-form-urlencoded
>
* We are completely uploaded and fine
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Fri, 02 Aug 2019 13:04:25 GMT
< content-type: application/json
< content-length: 176
< set-cookie: __cfduid=xxx; expires=Sat, 01-Aug-20 13:04:25 GMT; path=/; domain=.online-go.com; HttpOnly
< cache-control: no-store
< pragma: no-cache
< vary: Accept-Language, Cookie, Origin
< content-language: en
< set-cookie: csrftoken=xxx; expires=Fri, 31 Jul 2020 13:04:25 GMT; Max-Age=31449600; Path=/; SameSite=Lax
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< server: cloudflare
< cf-ray: 500041ee8eb4bedd-FRA
<
* Connection #0 to host online-go.com left intact
{"access_token": "xxx", "expires_in": 36000, "token_type": "Bearer", "scope": "read write groups", "refresh_token": "xxx"}