cli/cmd/gh
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
..
main.go Handle SAML enforcement challenge from the server (#5054) 2022-01-19 14:22:22 +01:00
main_test.go Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00