mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-03 03:12:50 +02:00
httputil: remove error details (#3703)
This commit is contained in:
parent
9482dba049
commit
63b210e51d
9 changed files with 33 additions and 33 deletions
|
@ -331,14 +331,14 @@ func TestProxy_ProgrammaticLogin(t *testing.T) {
|
|||
opts, http.MethodGet, "https", "corp.example.example", "/.pomerium/api/v1/login", nil,
|
||||
map[string]string{urlutil.QueryRedirectURI: "localhost"},
|
||||
http.StatusBadRequest,
|
||||
"{\"Status\":400,\"Error\":\"Bad Request: localhost url does contain a valid scheme\"}\n",
|
||||
"{\"Status\":400}\n",
|
||||
},
|
||||
{
|
||||
"bad redirect_uri not whitelisted",
|
||||
opts, http.MethodGet, "https", "corp.example.example", "/.pomerium/api/v1/login", nil,
|
||||
map[string]string{urlutil.QueryRedirectURI: "https://example.com"},
|
||||
http.StatusBadRequest,
|
||||
"{\"Status\":400,\"Error\":\"Bad Request: invalid redirect uri\"}\n",
|
||||
"{\"Status\":400}\n",
|
||||
},
|
||||
{
|
||||
"bad http method",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue