Add app_data

This commit is contained in:
Lakhan Samani
2023-08-14 12:01:37 +05:30
parent e625ed9633
commit 35e563ab3b
12 changed files with 1511 additions and 88 deletions

View File

@@ -386,6 +386,7 @@ func CreateIDToken(user *models.User, roles []string, hostname, nonce, atHash, c
userBytes, _ := json.Marshal(&resUser)
var userMap map[string]interface{}
json.Unmarshal(userBytes, &userMap)
fmt.Println("=> userBytes", string(userBytes))
claimKey, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyJwtRoleClaim)
if err != nil {
claimKey = "roles"