cli/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
..
cache.go Allow caching HTTP 204 responses 2021-03-01 16:04:34 +01:00
cache_test.go spelling: response 2020-11-21 21:43:51 -05:00
client.go Handle SAML enforcement challenge from the server (#5054) 2022-01-19 14:22:22 +01:00
client_test.go Ignore scope suggestions for http 422 (#4809) 2021-12-01 18:13:48 +00:00
export_pr.go Remove unnecessary pointers to Go maps 2021-10-25 17:20:12 +02:00
export_pr_test.go Export more IDs in issue/pr JSON payload 2021-05-18 18:19:28 +02:00
export_repo.go Remove unnecessary pointers to Go maps 2021-10-25 17:20:12 +02:00
pull_request_test.go Fix preloading of pr reviews, checks, and issue/pr comments 2021-05-18 17:13:27 +02:00
queries_comments.go Repace shurcool/graphql with cli/shurcool-graphql 2021-11-17 12:57:43 -08:00
queries_issue.go Improve issue view re: overfetching, PR support 2021-11-24 18:49:36 +01:00
queries_org.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
queries_pr.go Accept pull requests in issue edit argument 2021-11-23 20:39:19 +01:00
queries_pr_review.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
queries_pr_test.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
queries_repo.go #4386 Display a user's name in metadata survey for assignees and reviewers (#4420) 2022-01-12 08:52:22 +00:00
queries_repo_test.go #4386 Display a user's name in metadata survey for assignees and reviewers (#4420) 2022-01-12 08:52:22 +00:00
queries_user.go [Feature] Create repository from template 2020-08-27 14:46:16 -04:00
query_builder.go pr view: ensure that PR reviews are always rendered in --comments mode (#4848) 2021-12-03 18:07:27 +01:00
query_builder_test.go Fix broken GraphQL queries due to editing Author struct 2021-05-18 18:35:34 +02:00
reaction_groups.go Eliminate API overfetching in pr commands 2021-04-30 20:34:36 +02:00
reaction_groups_test.go Address PR comments 2020-12-08 10:24:02 -05:00