Browse Source

chore: fix build error

jamesread 11 months ago
parent
commit
17c716c599
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/internal/httpservers/restapi_auth_oauth2.go

+ 1 - 1
service/internal/httpservers/restapi_auth_oauth2.go

@@ -260,7 +260,7 @@ func (h *OAuth2Handler) handleOAuthCallback(w http.ResponseWriter, r *http.Reque
 		Timeout: clientSettings.Timeout,
 	}
 
-	userinfo := getUserInfo(cfg, userInfoClient, cfg.AuthOAuth2Providers[registeredState.providerName])
+	userinfo := getUserInfo(h.cfg, userInfoClient, h.cfg.AuthOAuth2Providers[registeredState.providerName])
 
 	h.registeredStates[state].Username = userinfo.Username
 	h.registeredStates[state].Usergroup = userinfo.Usergroup