From b7aeff57afea99fa8f464dd2ac1346173b4486f3 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Sat, 30 Apr 2022 12:45:08 +0530 Subject: [PATCH] fixes #160 --- server/token/auth_token.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/token/auth_token.go b/server/token/auth_token.go index 9608809..56d9e08 100644 --- a/server/token/auth_token.go +++ b/server/token/auth_token.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "log" - "os" "strings" "time" @@ -318,7 +317,7 @@ func CreateIDToken(user models.User, roles []string, hostname, nonce string) (st } // check for the extra access token script - accessTokenScript := os.Getenv(constants.EnvKeyCustomAccessTokenScript) + accessTokenScript := envstore.EnvStoreObj.GetStringStoreEnvVariable(constants.EnvKeyCustomAccessTokenScript) if accessTokenScript != "" { vm := otto.New()