aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/sspi.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/sspi.go')
-rw-r--r--services/auth/sspi.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/auth/sspi.go b/services/auth/sspi.go
index d4f7e3ec60..573d94b42c 100644
--- a/services/auth/sspi.go
+++ b/services/auth/sspi.go
@@ -67,7 +67,7 @@ func (s *SSPI) Verify(req *http.Request, w http.ResponseWriter, store DataStore,
return nil, nil
}
- cfg, err := s.getConfig()
+ cfg, err := s.getConfig(req.Context())
if err != nil {
log.Error("could not get SSPI config: %v", err)
return nil, err
@@ -129,8 +129,8 @@ func (s *SSPI) Verify(req *http.Request, w http.ResponseWriter, store DataStore,
}
// getConfig retrieves the SSPI configuration from login sources
-func (s *SSPI) getConfig() (*sspi.Source, error) {
- sources, err := auth.ActiveSources(auth.SSPI)
+func (s *SSPI) getConfig(ctx context.Context) (*sspi.Source, error) {
+ sources, err := auth.ActiveSources(ctx, auth.SSPI)
if err != nil {
return nil, err
}