Skip to content

Commit

Permalink
feature: adding sub parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrodrigues92 committed Mar 1, 2025
1 parent 406d873 commit 6a0cc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (auth *AuthClient) Authorize(sub string, resource string, action string) fi
"sub": "%s",
"resource": "%s",
"action": "%s"
}`, fmt.Sprintf("lerian/%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 {
Expand Down

0 comments on commit 6a0cc67

Please sign in to comment.