Backplane.Oauth.Authorization.Nonce protocol (backplane_oauth v1.10.77)

Copy Markdown View Source

Check OpenID Connect nonce against given request

Summary

Types

t()

All the types that implement this protocol.

Functions

Authorize the given request corresponding the nonce value.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

authorize(request)

@spec authorize(
  request :: Backplane.Oauth.CodeRequest.t() | Backplane.Oauth.TokenRequest.t()
) ::
  :ok | {:error, Backplane.Oauth.Error.t()}

Authorize the given request corresponding the nonce value.

Examples

iex> authorize(%CodeRequest{...})
:ok