Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2023 Changes in this version + const RolePrefix + var AccessDenied = exception.New(http.StatusForbidden, "Access is denied") + type AccessDecisionManager interface + Decide func(authentication authen.Authentication, ...) error + Supports func(authority authority.GrantedAuthority) bool + type AccessDecisionVoter interface + Supports func(authority authority.GrantedAuthority) bool + Vote func(authentication authen.Authentication, ...) VotingResult + type AffirmativeBasedADM struct + func NewAffirmativeBasedADM(voters ...AccessDecisionVoter) *AffirmativeBasedADM + func (a AffirmativeBasedADM) Decide(authentication authen.Authentication, ...) error + func (a AffirmativeBasedADM) Supports(authority authority.GrantedAuthority) bool + type RoleVoterADV struct + func NewRoleVoterADV() *RoleVoterADV + func (r RoleVoterADV) Supports(authority authority.GrantedAuthority) bool + func (r RoleVoterADV) Vote(auth authen.Authentication, restrictedAuthorities []authority.GrantedAuthority) VotingResult + type VotingResult int + const VotingAbstain + const VotingDenied + const VotingGranted