Documentation
¶
Index ¶
- func AuthorizeAdmin(next http.Handler) http.Handler
- func AuthorizeUser(next http.Handler) http.Handler
- func CheckAccess(member, admin bool) func(http.Handler) http.Handler
- func CheckAdmin() func(http.Handler) http.Handler
- func CheckMember() func(http.Handler) http.Handler
- func InjectOrganization(installations core.InstallationStore, installationz core.InstallationService, ...) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeAdmin ¶
AuthorizeAdmin returns an http.Handler middleware that authorizes only system administrators to proceed to the next handler in the chain.
func AuthorizeUser ¶
AuthorizeUser returns an http.Handler middleware that authorizes only authenticated users to proceed to the next handler in the chain. Guest users are rejected with a 401 unauthorized error.
func CheckAccess ¶
CheckAccess returns an http.Handler middleware that authorizes only authenticated users with the required member or admin access membership to the requested organization resource.
func CheckAdmin ¶
CheckAdmin returns an http.Handler middleware that authorizes only authenticated users with admin membership access to proceed to the next handler in the chain.
func CheckMember ¶
CheckMember returns an http.Handler middleware that authorizes only authenticated users with membership access to proceed to the next handler in the chain.
func InjectOrganization ¶
func InjectOrganization( installations core.InstallationStore, installationz core.InstallationService, memberships core.MembershipStore, ) func(http.Handler) http.Handler
InjectOrganization returns an http.Handler middleware that injects the organization and memberships into the context.
Types ¶
This section is empty.