# Functions
GetGroups returns group data stored in context.
GetIdentity returns identity data stored in context.
Init reads authorization from configstore, bootstraps values used to handle authorization.
IsAdmin asserts that identity data found in context represents an admin user.
IsRequester asserts that identity data found in context represents the requester of the given task.
IsResolutionManager asserts that identity data found in context is either: - a template owner (allowed_resolver_usernames or allowed_resolver_groups) - a task resolver (resolver_usernames or resolver_groups) - this task resolver (resolver_username).
IsTemplateOwner asserts that: - identity data found in context is a template allowed_resolver_usernames - or group data found in context is a template allowed_resolver_groups.
IsWatcher asserts that identity data found in context represents a watcher of the given task.
WithIdentity adds identity data to a context.
WithIdentity adds identity data to a context.
# Constants
GroupProviderCtxKey is the key used to store/retrieve group data from Context.
IdentityProviderCtxKey is the key used to store/retrieve identity data from Context.