ExOauth2Provider v0.2.3 ExOauth2Provider.Scopes View Source

Functions for dealing with scopes.

Link to this section Summary

Functions

Check if required scopes exists in the scopes list

Default scopes for server

Will default to server scopes if no scopes supplied

Check if two lists of scopes are equal

Filter defaults scopes from scopes list

Fetch scopes from an access token

All scopes for server

Convert scopes string to list

Convert scopes list to string

Link to this section Functions

Link to this function all?(scopes, required_scopes) View Source
all?([String.t()], [String.t()]) :: boolean()

Check if required scopes exists in the scopes list

Link to this function default_server_scopes() View Source
default_server_scopes() :: [String.t()]

Default scopes for server

Link to this function default_to_server_scopes(server_scopes) View Source

Will default to server scopes if no scopes supplied

Link to this function equal?(scopes, other_scopes) View Source
equal?([String.t()], [String.t()]) :: boolean()

Check if two lists of scopes are equal

Link to this function filter_default_scopes(scopes) View Source
filter_default_scopes([String.t()]) :: [String.t()]
filter_default_scopes([String.t()]) :: [String.t()]

Filter defaults scopes from scopes list

Link to this function from_access_token(access_token) View Source
from_access_token(map()) :: [String.t()]

Fetch scopes from an access token

Link to this function server_scopes() View Source
server_scopes() :: [String.t()]

All scopes for server

Convert scopes string to list

Link to this function to_string(scopes) View Source
to_string(list()) :: String.t()

Convert scopes list to string