Skip to content

Commit 370df19

Browse files
authored
Merge pull request #139 from LalitDeore/fix-minor-issues
fix - clear cache of suborg when authentication distributed to suborg
2 parents 021a3f5 + 96afff1 commit 370df19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shared.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4646,6 +4646,13 @@ func SetAuthenticationConfig(resp http.ResponseWriter, request *http.Request) {
46464646
resp.Write([]byte(`{"success": false, "reason": "Failed updating auth. Please try again."}`))
46474647
return
46484648
}
4649+
4650+
for _, childOrg := range org.ChildOrgs {
4651+
nameKey := "workflowappauth"
4652+
cacheKey := fmt.Sprintf("%s_%s", nameKey, childOrg.Id)
4653+
DeleteCache(ctx, cacheKey)
4654+
}
4655+
46494656
} else {
46504657
log.Printf("[WARNING] Unknown auth change action %s", config.Action)
46514658
}

0 commit comments

Comments
 (0)