Versions in this module Expand all Collapse all v0 v0.8.3 May 8, 2023 Changes in this version + const ActionGetKey + const ActionListKey + const AuditGetKey + const AuthAuthenticateKey + const AuthTokenNewKey + const CheckKey + const ClientCreateKey + const ClientDeleteKey + const ClientGetKey + const ClientListKey + const CompiledListKey + const OAuthAuthenticateKey + const OAuthCallbackKey + const OAuthClaimEmailKey + const OAuthClaimNameKey + const OAuthExpiresInCookieName + const OAuthNonceCookieName + const OAuthStateCookieName + const OAuthTokenCookieName + const PolicyCreateKey + const PolicyDeleteKey + const PolicyGetKey + const PolicyListKey + const PolicyUpdateKey + const PrincipalCreateKey + const PrincipalDeleteKey + const PrincipalGetKey + const PrincipalListKey + const PrincipalUpdateKey + const ResourceCreateKey + const ResourceDeleteKey + const ResourceGetKey + const ResourceListKey + const ResourceUpdateKey + const RoleCreateKey + const RoleDeleteKey + const RoleGetKey + const RoleListKey + const RoleUpdateKey + const StatsGetKey + const UserCreateKey + const UserDeleteKey + const UserGetKey + const UserListKey + func ActionGet(actionManager manager.Action) fiber.Handler + func ActionList(actionManager manager.Action) fiber.Handler + func AuditGet(auditManager manager.Audit) fiber.Handler + func Authenticate(validate *validator.Validate, userManager manager.User, ...) fiber.Handler + func Check(logger *slog.Logger, validate *validator.Validate, ...) fiber.Handler + func ClientCreate(validate *validator.Validate, clientManager manager.Client, ...) fiber.Handler + func ClientDelete(clientManager manager.Client) fiber.Handler + func ClientGet(clientManager manager.Client) fiber.Handler + func ClientList(clientManager manager.Client) fiber.Handler + func CompiledList(compiledManager manager.CompiledPolicy) fiber.Handler + func OAuthAuthenticate(oauthClientManager client.Manager, tokenGenerator token.Generator) fiber.Handler + func OAuthCallback(jwtManager jwt.Manager, oauthClientManager client.Manager, ...) fiber.Handler + func PolicyCreate(validate *validator.Validate, policyManager manager.Policy) fiber.Handler + func PolicyDelete(policyManager manager.Policy) fiber.Handler + func PolicyGet(policyManager manager.Policy) fiber.Handler + func PolicyList(policyManager manager.Policy) fiber.Handler + func PolicyUpdate(validate *validator.Validate, policyManager manager.Policy) fiber.Handler + func PrincipalCreate(validate *validator.Validate, principalManager manager.Principal) fiber.Handler + func PrincipalDelete(principalManager manager.Principal) fiber.Handler + func PrincipalGet(principalManager manager.Principal) fiber.Handler + func PrincipalList(principalManager manager.Principal) fiber.Handler + func PrincipalUpdate(validate *validator.Validate, principalManager manager.Principal) fiber.Handler + func ResourceCreate(validate *validator.Validate, resourceManager manager.Resource) fiber.Handler + func ResourceDelete(resourceManager manager.Resource) fiber.Handler + func ResourceGet(resourceManager manager.Resource) fiber.Handler + func ResourceList(resourceManager manager.Resource) fiber.Handler + func ResourceUpdate(validate *validator.Validate, resourceManager manager.Resource) fiber.Handler + func RoleCreate(validate *validator.Validate, roleManager manager.Role) fiber.Handler + func RoleDelete(roleManager manager.Role) fiber.Handler + func RoleGet(roleManager manager.Role) fiber.Handler + func RoleList(roleManager manager.Role) fiber.Handler + func RoleUpdate(validate *validator.Validate, roleManager manager.Role) fiber.Handler + func StatsGet(statsManager manager.Stats) fiber.Handler + func TokenNew(server *server.Server) http.HandlerFunc + func UserCreate(validate *validator.Validate, userManager manager.User) fiber.Handler + func UserDelete(userManager manager.User) fiber.Handler + func UserGet(userManager manager.User) fiber.Handler + func UserList(userManager manager.User) fiber.Handler + type AttributeKeyValue struct + Key string + Value any + type AuthRequest struct + Password string + Username string + type AuthResponse struct + AccessToken string + ExpiresIn int64 + TokenType string + User *model.User + type CheckRequest struct + Checks []*CheckRequestQuery + type CheckRequestQuery struct + Action string + Principal string + ResourceKind string + ResourceValue string + type CheckResponse struct + Checks []*CheckResponseQuery + type CheckResponseQuery struct + IsAllowed bool + type ClientCreateRequest struct + Name string + type CreatePolicyRequest struct + Actions []string + AttributeRules []string + ID string + Resources []string + type CreatePrincipalRequest struct + ID string + Roles []string + type CreateResourceRequest struct + ID string + Kind string + Value string + type CreateRoleRequest struct + ID string + Policies []string + type Handler fiber.Handler + type Handlers map[string]Handler + func NewHandlers(actionManager manager.Action, auditManager manager.Audit, ...) Handlers + func (h Handlers) Get(name string) Handler + type RequestAttributes struct + Attributes []AttributeKeyValue + func (r RequestAttributes) AttributesMap() map[string]any + type TokenRequest struct + ClientID string + ClientSecret string + GrantType string + RefreshToken string + type TokenResponse struct + AccessToken string + ExpiresIn int + RefreshToken string + TokenType string + type UpdatePolicyRequest struct + Actions []string + AttributeRules []string + Resources []string + type UpdatePrincipalRequest struct + Roles []string + type UpdateResourceRequest struct + Kind string + Value string + type UpdateRoleRequest struct + Policies []string + type UserCreateRequest struct + Username string