package
0.0.0-20240901130656-3f6710173eae
Repository: https://github.com/relabs-tech/kurbisio.git
Documentation: pkg.go.dev
# Functions
AuthorizationFromContext retrieves an authorization from the context.
ContextWithAuthorization returns a new context with any non-nil authorization added to it.
ContextWithEmail returns a new context with the (authenticated) email added to it.
ContextWithIdentity returns a new context with the (authenticated) identity added to it.
EmailFromContext retrieves the (authenticated) email from the context.
EnsureFunctionAccounts creates the specified function accounts if they do not exist yet.
HandleAuthorizationRoute adds a route /authorization GET to the router
The route returns the current authorization for the authenticated requester.
IdentityFromContext retrieves the (authenticated) identity from the context.
NewAuthorizationCache creates a new authorization cache.
NewBackdoorMiddelware returns a middleware handler for a backdoor
The key for the backdoors map is the bearer token passed with the request.
NewJwtMiddelware returns a middleware handler to validate JWT bearer token.
NewJwtMiddelware2 returns a middleware handler to validate JWT bearer token.
# Variables
OnlyAdminAccess requires admin access for everything.
# Structs
Authorization is a context object which stores authorization information
for user, things, or machines.
AuthorizationCache is an in-memory cache for authorizations.
BackdoorMiddlewareBuilder is a helper builder for JwtMiddelware.
FunctionAccount is a function accoutn.
IdentityIssuer is an entity that provides identity.
JwtMiddlewareBuilder is a helper builder for JwtMiddelware.
Permit models an authorization permit for a resource.