|
@@ -67,7 +67,14 @@ func RefreshAuthorizerInfo(authCode string, authorizer config.AuthorizerConfig)
|
67
|
67
|
appID := authInfo.AuthorizerAppID
|
68
|
68
|
expire := utils.GetExpireTime(authInfo.ExpiresIn)
|
69
|
69
|
|
70
|
|
- authorizer.RefreshFuncInfo(appID, authInfo.FuncInfo)
|
|
70
|
+ funcLst := make([]int, 0)
|
|
71
|
+ if nil != authInfo.FuncInfo && len(authInfo.FuncInfo) > 0 {
|
|
72
|
+ for _, info := range authInfo.FuncInfo {
|
|
73
|
+ funcLst = append(funcLst, info.FuncscopeCategory.ID)
|
|
74
|
+ }
|
|
75
|
+ }
|
|
76
|
+
|
|
77
|
+ authorizer.RefreshFuncInfo(appID, funcLst)
|
71
|
78
|
if err := authorizer.RefreshToken(appID, authInfo.AuthorizerAccessToken, authInfo.AuthorizerRefreshToken, expire); err != nil {
|
72
|
79
|
return err
|
73
|
80
|
}
|