Skip to content

Commit

Permalink
Remove outdated response_type test case authgear#3813
Browse files Browse the repository at this point in the history
We now use implicitly whitelisted response types instead of client
config
  • Loading branch information
IniZio committed Feb 29, 2024
1 parent 07c864a commit bae95f6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/lib/oauth/handler/handler_authz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,19 +360,6 @@ func TestAuthorizationHandler(t *testing.T) {
CustomUIURI: "https://ui.custom.com",
}
clientResolver.ClientConfig = mockedClient
Convey("request validation", func() {
Convey("not allowed response types", func() {
mockedClient.ResponseTypes = nil
resp := handle(protocol.AuthorizationRequest{
"client_id": "client-id",
"response_type": "none",
})
So(resp.Result().StatusCode, ShouldEqual, 200)
So(resp.Body.String(), ShouldEqual, redirectHTML(
"https://example.com/?error=unauthorized_client&error_description=response+type+is+not+allowed+for+this+client",
))
})
})
Convey("scope validation", func() {
validated := false
h.ValidateScopes = func(client *config.OAuthClientConfig, scopes []string) error {
Expand Down

0 comments on commit bae95f6

Please sign in to comment.