mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-30 15:20:17 +00:00
tests: fix oidc controller tests
This commit is contained in:
@@ -85,7 +85,7 @@ func TestOIDCController(t *testing.T) {
|
|||||||
assert.Equal(t, http.StatusFound, recorder.Code)
|
assert.Equal(t, http.StatusFound, recorder.Code)
|
||||||
location := recorder.Header().Get("Location")
|
location := recorder.Header().Get("Location")
|
||||||
assert.Contains(t, location, oidcService.GetIssuer()+"/error")
|
assert.Contains(t, location, oidcService.GetIssuer()+"/error")
|
||||||
assert.Contains(t, location, url.QueryEscape("The client provided invalid query parameters"))
|
assert.Contains(t, location, url.QueryEscape("The client ID is invalid"))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user