Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match determines if a scope 'toCheck' matches the 'origin' scope. The origin might be more specific than the 'toCheck' scope.
func MatchScopes ¶
MatchScopes checks if the 'request' scopes matches 'origin' scopes in a hierarchical way.
func SplitScopes ¶
SplitScopes splits the scope stored in the oauth query or token.
Types ¶
type Scope ¶
Scope is the authorization scope unmarshaled into computable form.
func ParseScope ¶
ParseScope parses the string scope into a authorization scope.
type Scopes ¶
type Scopes []Scope
Scopes is a slice of auth scopes that allows basic operation on checking and comparing multiple scopes.
func ParseScopes ¶
ParseScopes parses the scope into hierarchical structure.
Click to show internal directories.
Click to hide internal directories.