copy and modify the routes test for the legacy server

This commit is contained in:
Tim Möhlmann 2023-09-21 18:13:38 +03:00
parent c98291a6a7
commit af2d2942a1
6 changed files with 390 additions and 17 deletions

View file

@ -248,7 +248,7 @@ func unimplementedError(r interface{ path() string }) StatusError {
}
func unimplementedGrantError(gt oidc.GrantType) StatusError {
err := oidc.ErrUnsupportedGrantType().WithDescription("%s grant not supported", gt)
err := oidc.ErrUnsupportedGrantType().WithDescription("%s not supported", gt)
return NewStatusError(err, http.StatusBadRequest) // https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
}