Boruta.Oauth.Authorization.Nonce protocol (Boruta core v2.3.5)

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 :: Boruta.Oauth.CodeRequest.t() | Boruta.Oauth.TokenRequest.t()
) ::
  :ok | {:error, Boruta.Oauth.Error.t()}

Authorize the given request corresponding the nonce value.

Examples

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