Boruta.Oauth.Scope (Boruta core v1.2.1) View Source
Schema defining an independent OAuth scope
Link to this section Summary
Functions
Determines if artifact is authorized to access given scope.
Splits an OAuth scope string into individual scopes as string
Link to this section Types
Specs
Link to this section Functions
Specs
authorized?( against :: List | Boruta.Oauth.Token.t() | Boruta.Oauth.Client.t(), scope :: String.t(), public_scopes :: list() ) :: boolean()
Determines if artifact is authorized to access given scope.
Specs
Splits an OAuth scope string into individual scopes as string
Examples
iex> scope("a:scope another:scope")
["a:scope", "another:scope"]