callback_handler.go: add a test for invalid state auth params

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler
2020-11-19 08:41:44 -05:00
parent 652ea6bd2a
commit ffdb7fa795
2 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func NewHandler(idpListGetter oidc.IDPListGetter, oauthHelper fosite.OAuth2Provi
downstreamAuthParams, err := url.ParseQuery(state.AuthParams)
if err != nil {
panic(err) // TODO
return httperr.New(http.StatusBadRequest, "error reading state's downstream auth params")
}
// Recreate enough of the original authorize request so we can pass it to NewAuthorizeRequest().