View Source oidcc_scope (Oidcc v3.2.0)

OpenID Scope Utilities

Summary

Types

Link to this type

scopes/0

View Source (since 3.0.0 -------------------------------------------------------------------)
-type scopes() :: [nonempty_binary() | atom() | nonempty_string()].
Link to this type

t/0

View Source (since 3.0.0 -------------------------------------------------------------------)
-type t() :: binary().

Functions

Link to this function

parse(Scope)

View Source (since 3.0.0)
-spec parse(Scope :: t()) -> scopes().

Parse t() into scopes()

Examples

  [<<"openid">>, <<"profile">>] = oidcc_scope:parse(<<"openid profile">>).
Link to this function

scopes_to_bin(Scopes)

View Source (since 3.0.0)
-spec scopes_to_bin(Scopes :: scopes()) -> t().

Compose scopes() into t()

Examples

  <<"openid profile email">> = oidcc_scope:scopes_to_bin(
    [<<"openid">>, profile, "email"]).