package
0.15.1
Repository: https://github.com/cisco-open/go-lanai.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
HasPermissions returns a ControlFunc that checks permissions of current auth.
HasPermissionsWithExpr takes an expression and returns a ControlFunc that evaluate security.Permissions against the given expression.
No description provided by the author
New Standard security.Feature entrypoint, DSL style.
No description provided by the author
No description provided by the author
No description provided by the author
RequirePermissions returns ControlCondition using HasPermissionsWithExpr e.g.
No description provided by the author

# Variables

No description provided by the author
goland:noinspection GoNameStartsWithPackageName.

# Structs

goland:noinspection GoNameStartsWithPackageName.
goland:noinspection GoNameStartsWithPackageName.
goland:noinspection GoNameStartsWithPackageName.
goland:noinspection GoNameStartsWithPackageName.
ConditionWithControlFunc is a common ControlCondition implementation backed by ControlFunc.

# Type aliases

AcrMatcher short for Access Control RequestDetails Matcher, accepts *http.Request or http.Request.
ControlCondition extends web.RequestMatcher, and matcher.ChainableMatcher it is used together with web.RoutedMapping's "Condition" for a convienent config of securities only matcher.ChainableMatcher's .MatchesWithContext (context.Context, interface{}) (bool, error) is used Matches(interface{}) (bool, error) should return regular as if the context is empty In addition, implementation should also return AccessDeniedError when condition didn't match.
ControlFunc make access control decision based on security.Authentication "decision" indicate whether the access is grated "reason" is optional and is used when access is denied.
DecisionMakerFunc determine if current user can access to given http.Request if the given request is not handled by this function, return false, nil if the given request is handled and the access is granted, return true, nil otherwise, return true, security.ErrorTypeCodeAccessControl error.