Std.App.Access
25 public declarations
- anonymous
Std.App.Access.PrincipalNobody in particular.
- attributeOf
&Std.App.Access.Principal -> Str -> Option[Str]What is known about a principal under a name.
- decide
&Std.App.Access.Requirement -> &Std.App.Access.Principal -> Std.App.Access.DecisionWhat a requirement decides about a principal.
- Decision
What a requirement decided.
- describe
&Std.App.Access.Requirement -> StrWhat a requirement is, as text.
- get
Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route that requires something, for each method.
- Guarded
A route that stated what it requires.
- holds
&Std.App.Access.Principal -> Str -> BoolWhether a principal holds a role.
- knowing
&Std.App.Access.Principal -> Str -> Str -> Std.App.Access.PrincipalThe same principal with one more thing known about them.
- on
Std.Http.Method -> Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route requiring something, for a method this module does not name.
- openRoutes
&Array[Std.App.Access.Guarded] -> Array[Str]The routes anyone may reach.
- patch
Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route answering PATCH, allowed only when the requirement is met.
- permits
&Std.App.Access.Decision -> BoolWhether a decision permits.
- post
Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route answering POST, allowed only when the requirement is met.
- principal
Str -> &Array[Str] -> Std.App.Access.PrincipalSomebody, identified.
- Principal
Who is asking.
- put
Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route answering PUT, allowed only when the requirement is met.
- query
Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route answering QUERY, allowed only when the requirement is met.
- reasonOf
&Std.App.Access.Decision -> StrWhy a decision refused, for a log rather than for a caller.
- refusal
&Std.App.Access.Decision -> Std.Http.ResponseWhat a denied caller receives.
- remove
Str -> Std.App.Access.Requirement -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.App.Access.GuardedA route answering DELETE, allowed only when the requirement is met.
- Requirement
What a route requires.
- requirements
&Array[Std.App.Access.Guarded] -> Array[(Str, Str)]What every route requires, in the order the routes were given.
- routing
&Array[Std.App.Access.Guarded] -> fn(Std.Http.Server.Route.Request) -> Std.App.Access.Principal -> Std.Http.Server.Route.RouterA router over routes that all stated what they require.
- statusOf
&Std.App.Access.Decision -> IntThe status a decision answers with.
