Skip to content

Commit

Permalink
set apiTokenSecretStore
Browse files Browse the repository at this point in the history
  • Loading branch information
manish-agrawal-ai committed May 30, 2022
1 parent 848fcc8 commit 9a4123d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middleware/sessionmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 9a4123d

Please sign in to comment.