Boruta.Oauth.Scope (Boruta core v0.2.1) View Source

Schema defining an independent OAuth scope

Link to this section Summary

Functions

Splits an OAuth scope string into individual scopes as string

Link to this section Types

Specs

t() :: %Boruta.Oauth.Scope{id: any(), name: String.t(), public: boolean()}

Link to this section Functions

Specs

split(oauth_scope :: String.t() | nil) :: [String.t()]

Splits an OAuth scope string into individual scopes as string

Examples

iex> scope("a:scope another:scope")
["a:scope", "another:scope"]