Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct { RequestMethod string RequestPath string IdentityStatus string ProjectId string ProjectDomainId string User User }
func GetIdentity ¶
func GetIdentity(r *http.Request) *Authorization
func (*Authorization) CheckIdentity ¶
func (auth *Authorization) CheckIdentity() error
func (*Authorization) CheckPolicy ¶
func (auth *Authorization) CheckPolicy(warden ladon.Ladon) error
CheckPolicy checks the given roles against the policy
type IdentityStatusInvalid ¶
type IdentityStatusInvalid struct {
Msg string
}
func (IdentityStatusInvalid) Error ¶
func (e IdentityStatusInvalid) Error() string
type NotAuthorized ¶
type NotAuthorized struct {
Msg string
}
func (NotAuthorized) Error ¶
func (e NotAuthorized) Error() string
Click to show internal directories.
Click to hide internal directories.