cli/pkg/cmd/factory
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
..
default.go Merge pull request #5022 from cli/config-defaults 2022-01-17 10:44:28 -06:00
default_test.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
http.go Handle SAML enforcement challenge from the server (#5054) 2022-01-19 14:22:22 +01:00
http_test.go Handle SAML enforcement challenge from the server (#5054) 2022-01-19 14:22:22 +01:00
remote_resolver.go undo overzealous find/replace 2022-01-14 15:27:05 -06:00
remote_resolver_test.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00