diff --git a/auth/middleware/middleware.go b/auth/middleware/middleware.go index 7a703fa..ea0dbc7 100644 --- a/auth/middleware/middleware.go +++ b/auth/middleware/middleware.go @@ -31,7 +31,7 @@ func (auth *AuthClient) Authorize(sub string, resource string, action string) fi "sub": "%s", "resource": "%s", "action": "%s" - }`, fmt.Sprintf("%s-role", sub), resource, action)) + }`, fmt.Sprintf("lerian/%s-role", sub), resource, action)) req, err := http.NewRequest(http.MethodPost, auth.AuthAddress+"/v1/authorize", reqBody) if err != nil {