Boruta core v0.1.0-rc.5 Boruta.Oauth.Scope 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

Link to this type

t()

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

Link to this section Functions

Link to this function

split(scope)

View Source
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"]