Use 202 for token polling endpoint instead of 204 (#1103)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-04-12 14:57:14 -04:00
1 parent 71673ea161
commit 90b30bad25
6 files changed
+585 -684

No files matched your search

+1 -1
View File
@@ -134,7 +134,7 @@ func (c *OidcCommand) Run(args []string) int {
watchCode = base.CommandCliError
return
}
if result.GetResponse().StatusCode() == http.StatusNoContent {
if result.GetResponse().StatusCode() == http.StatusAccepted {
// Nothing yet -- circle around.
continue
}