|
|
@@ -199,7 +199,6 @@ func HandleAuth(ctx context.Context, req *protocol.Message, token string, authEx
|
|
|
path := "/" + req.ServicePath + "/" + req.ServiceMethod
|
|
|
//g.Log().Info("reqPath: ", path)
|
|
|
//g.Log().Info("token: ", token)
|
|
|
- req.Metadata["authExclude"] = "true"
|
|
|
|
|
|
if authPath(path, authExcludePaths) {
|
|
|
req.Metadata["authExclude"] = "false"
|
|
|
@@ -271,7 +270,7 @@ func validToken(token string) gtoken.Resp {
|
|
|
return grsp
|
|
|
}
|
|
|
|
|
|
- authService := InitMicroSrvClient("Admin", "micro_srv.auth")
|
|
|
+ authService := InitMicroSrvClient("Auth", "micro_srv.auth")
|
|
|
defer authService.Close()
|
|
|
rsp := &auth.Response{}
|
|
|
err := authService.Call(context.TODO(), "ValidToken", token, rsp)
|