tianxiaoliang commented on a change in pull request #736:
URL:
https://github.com/apache/servicecomb-service-center/pull/736#discussion_r530939136
##########
File path: pkg/rbacframe/api.go
##########
@@ -74,3 +76,27 @@ func Authenticate(tokenStr string, pub *rsa.PublicKey)
(interface{}, error) {
}
return claims, nil
}
+
+// TypeOfRole return role list string
+func TypeOfRole(v interface{}) ([]string, error) {
Review comment:
不要搞复杂,这里面就是roles,没有role
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]