Skip to content

Commit

Permalink
feature: adding new environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrodrigues92 committed Mar 5, 2025
1 parent 52193b8 commit 1ddd454
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 @@ -24,7 +24,7 @@ type AuthResponse struct {

// Authorize is a middleware function for the Fiber framework that checks if a user is authorized to perform a specific action on a resource.
// It sends a POST request to the authorization service with the subject, resource, and action details.
// If the user is authorized, the request is passed to the next handler; otherwise, a 403 Forbidden status is returned.
// If the user is authorized, the request is passed to the next handler; otherwise, a 403 Forbidden status is returned
func (auth *AuthClient) Authorize(sub, resource, action string) fiber.Handler {
if !auth.AuthEnabled && auth.AuthAddress == "" {
return func(c *fiber.Ctx) error {
Expand Down

0 comments on commit 1ddd454

Please sign in to comment.