From 9a4123d5ad17e8f7e4bdf06a3aeffbb6e63dd11e Mon Sep 17 00:00:00 2001 From: Manish Agrawal Date: Mon, 30 May 2022 19:55:37 +0530 Subject: [PATCH] set apiTokenSecretStore --- middleware/sessionmanager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/middleware/sessionmanager.go b/middleware/sessionmanager.go index 5eb504e..7bfb7eb 100644 --- a/middleware/sessionmanager.go +++ b/middleware/sessionmanager.go @@ -64,9 +64,10 @@ var ( ) // NewSessionManager creates a new session manager from Argo CD settings -func NewSessionManager(settings *oidc.Settings, config *client.DexConfig) *SessionManager { +func NewSessionManager(settings *oidc.Settings, config *client.DexConfig, apiTokenSecretStore *apiTokenAuth.ApiTokenSecretStore) *SessionManager { s := SessionManager{ - settings: settings, + settings: settings, + apiTokenSecretStore: apiTokenSecretStore, } s.client = &http.Client{ Transport: &http.Transport{ @@ -187,7 +188,6 @@ func (mgr *SessionManager) ParseApiToken(tokenString string) (jwt.Claims, error) return token.Claims, nil } - // VerifyToken verifies if a token is correct. Tokens can be issued either from us or by an IDP. // We choose how to verify based on the issuer. func (mgr *SessionManager) VerifyToken(tokenString string) (jwt.Claims, error) {