authorize: hot path identity provider lookup optimizations

This commit is contained in:
Joe Kralicky 2024-06-18 21:40:03 -04:00
parent 7eca911292
commit e18c04216e
No known key found for this signature in database
GPG key ID: 75C4875F34A9FB79
29 changed files with 387 additions and 284 deletions

View file

@ -249,7 +249,7 @@ func TestAuthenticate_SignOut(t *testing.T) {
}
u.RawQuery = params.Encode()
r := httptest.NewRequest(tt.method, u.String(), nil)
state, err := tt.sessionStore.LoadSession(r)
state, err := tt.sessionStore.LoadSession(context.TODO(), r)
if err != nil {
t.Fatal(err)
}
@ -481,7 +481,7 @@ func TestAuthenticate_SessionValidatorMiddleware(t *testing.T) {
options: config.NewAtomicOptions(),
}
r := httptest.NewRequest(http.MethodGet, "/", nil)
state, err := tt.session.LoadSession(r)
state, err := tt.session.LoadSession(context.TODO(), r)
if err != nil {
t.Fatal(err)
}
@ -586,7 +586,7 @@ func TestAuthenticate_userInfo(t *testing.T) {
}),
}
r := httptest.NewRequest(http.MethodGet, tt.url, nil)
state, err := tt.sessionStore.LoadSession(r)
state, err := tt.sessionStore.LoadSession(context.TODO(), r)
if err != nil {
t.Fatal(err)
}