CPub.Web.Authorization.Scope (CPub v0.3.0) View Source
Defines the valid scopes of authorization to CPub.
Valid scopes are:
:read
:write
:follow
See the Mastodon OAuth scopes for inspiration on more finer-grained scopes that might be implemented in the future.
Link to this section Summary
Functions
Parse and validate a string into a list of valid scopes.
Returns true if scope1
is a subset of scope2
Returns true is scope or list of scopes is valid.
Link to this section Functions
Specs
default() :: [atom()]
Specs
Parse and validate a string into a list of valid scopes.
Specs
Returns true if scope1
is a subset of scope2
Specs
Returns true is scope or list of scopes is valid.