View Source oidcc_scope (Oidcc v3.2.6)

OpenID Scope Utilities

Summary

Types

Link to this type

scopes()

View Source (since 3.0.0)
-type scopes() :: [nonempty_binary() | atom() | nonempty_string()].
-type t() :: binary().

Functions

Link to this function

parse(Scope)

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

Parse t/0 into scopes/0.

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/0 into t/0.

Examples

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