View Source ExOauth2Provider.Scopes (ExOauth2Provider v0.5.7)

Functions for dealing with scopes.

Summary

Functions

Check if required scopes exists in the scopes list

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

Convert scopes string to list

Convert scopes list to string

Functions

Link to this function

all?(scopes, required_scopes)

View Source
@spec all?([binary()], [binary()]) :: boolean()

Check if required scopes exists in the scopes list

Link to this function

default_to_server_scopes(server_scopes, config)

View Source
@spec default_to_server_scopes(
  [binary()],
  keyword()
) :: [binary()]

Will default to server scopes if no scopes supplied

Link to this function

equal?(scopes, other_scopes)

View Source
@spec equal?([binary()], [binary()]) :: boolean()

Check if two lists of scopes are equal

Link to this function

filter_default_scopes(scopes, config)

View Source
@spec filter_default_scopes(
  [binary()],
  keyword()
) :: [binary()]

Filter defaults scopes from scopes list

Link to this function

from_access_token(access_token)

View Source
@spec from_access_token(map()) :: [binary()]

Fetch scopes from an access token

@spec to_list(binary()) :: [binary()]

Convert scopes string to list

@spec to_string(list()) :: binary()

Convert scopes list to string