in pkg/provider/googleapps/googleapps.go [716:744]
func filterKeyHandleList(list []interface{}, challengeTxt string) (string, []string) {
appId := ""
newList := []string{}
for _, entry := range list {
if entry == nil {
continue
}
moreList, ok := entry.([]interface{})
if ok {
id, l := filterKeyHandleList(moreList, challengeTxt)
if id != "" {
appId = id
}
newList = append(newList, l...)
continue
}
str, ok := entry.(string)
if !ok {
continue
}
if appId == "" {
appId = isAppId(str)
}
if isKeyHandle(str, challengeTxt) {
newList = append(newList, str)
}
}
return appId, newList
}