forked from baron/baron-sso
Merge origin/main and remove Descope deps
This commit is contained in:
@@ -77,8 +77,8 @@ func TestCompletePasswordReset_InvalidPasswordPolicy(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestCompletePasswordReset_NilDescopeClient(t *testing.T) {
|
||||
h := &AuthHandler{} // DescopeClient intentionally nil to hit the configuration error branch
|
||||
func TestCompletePasswordReset_NilIDPProvider(t *testing.T) {
|
||||
h := &AuthHandler{} // IdpProvider intentionally nil to hit the configuration error branch
|
||||
app := newTestApp(h)
|
||||
|
||||
body, _ := json.Marshal(map[string]string{
|
||||
@@ -95,7 +95,7 @@ func TestCompletePasswordReset_NilDescopeClient(t *testing.T) {
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != http.StatusInternalServerError {
|
||||
t.Fatalf("expected 500 when Descope client is nil, got %d", resp.StatusCode)
|
||||
t.Fatalf("expected 500 when IDP provider is nil, got %d", resp.StatusCode)
|
||||
}
|
||||
|
||||
var got map[string]string
|
||||
|
||||
Reference in New Issue
Block a user