- Integrated ACL (Access Control List) functionality into the OAuth guard, enabling permission checks and rate limiting based on ACL configurations. - Updated error responses for token validation and refresh token handling to use standardized error types. - Enhanced error handling for ACL-related issues, providing detailed HTTP responses based on specific ACL error types. - Improved overall security and user experience by ensuring proper authorization checks are enforced during API requests.
8 lines
181 B
Go
8 lines
181 B
Go
package acl
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
// Enforce checks if the user has access to the resource
|
|
func (acl *ACL) Enforce(c *gin.Context) (bool, error) {
|
|
return true, nil
|
|
}
|