forked from baron/baron-sso
리다이렉트 후속 로직 업데이트
This commit is contained in:
@@ -188,10 +188,13 @@ func TestPasswordLogin_OIDC_Success(t *testing.T) {
|
||||
t.Fatalf("expected 200, got %d, body: %s", resp.StatusCode, string(bodyBytes))
|
||||
}
|
||||
|
||||
var got map[string]string
|
||||
var got map[string]interface{}
|
||||
json.NewDecoder(resp.Body).Decode(&got)
|
||||
if got["redirectTo"] != "http://rp/cb" {
|
||||
t.Errorf("expected redirectTo http://rp/cb, got %s", got["redirectTo"])
|
||||
t.Errorf("expected redirectTo http://rp/cb, got %v", got["redirectTo"])
|
||||
}
|
||||
if _, ok := got["sessionJwt"]; ok {
|
||||
t.Errorf("expected OIDC response to omit sessionJwt, got %v", got["sessionJwt"])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user