package
0.12.5
Repository: https://github.com/go-aah/aah.git
Documentation: pkg.go.dev

# Functions

NewAuthorizationInfo method creates an `AuthorizationInfo` instance with zero values.
NewPermission method creats the permission instance for the given permission string in incase-sensitive.
NewPermissioncs method creats the permission instance for the given permission string in Case-Sensitive.

# Variables

ErrAuthorizerIsNil error is return when authorizer is nil in the auth scheme.
ErrPermissionImproperFormat returned when permission string is composed or formatted properly.
ErrPermissionStringEmpty returned when empty permission string supplied to methods `security.authz.NewPermission` or `security.authz.NewPermissioncs`.

# Structs

AuthorizationInfo struct holds the information of Subject authorization.
Permission represents the ability to perform an action or access a resource.
Reason struct used to represent authorization failed details.

# Interfaces

Authorizer interface is used to provide authorization info (roles and permissions) after successful authentication.