cli/pkg/cmd/api
Mislav Marohnić 66c18b40f2
Handle SAML enforcement challenge from the server (#5054)
Whenever a SSO challenge gets issued by the server by means of a URL in
the `X-GitHub-SSO` response header, gh now additionally prints that URL
on the standard error stream.

This is achieved by installing a middleware to all HTTP requests and
storing the server challenge to a value accessible by `factory.SSOURL()`.
Such approach was made necessary mainly because of the
`shurcool-graphql` client which doesn't give access to response headers
when a GraphQL error case is encountered.
2022-01-19 14:22:22 +01:00
..
api.go Handle SAML enforcement challenge from the server (#5054) 2022-01-19 14:22:22 +01:00
api_test.go api: handle HTTP 409 error message from the server 2021-12-06 19:54:54 +01:00
http.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
http_test.go Allow explicitly specifying the hostname for gh operations 2020-08-12 16:16:34 +02:00
pagination.go Correct benign mistake in off-by-one guard 2021-08-19 14:41:04 +01:00
pagination_test.go Automatically add per_page=100 to paginated REST requests 2020-06-23 18:42:57 +02:00