ExOauth2Provider v0.2.1 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

Check if required scopes exists in the scopes list

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

Check if two lists of scopes are equal

Link to this function filter_default_scopes(scopes) View Source

Filter defaults scopes from scopes list

Link to this function from_access_token(access_token) View Source
from_access_token(map) :: list

Fetch scopes from an access token

All scopes for server

Link to this function to_list(str) View Source
to_list(String.t) :: list

Convert scopes string to list

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

Convert scopes list to string