TamaOAuth.AuthorizationRequest (tama_oauth v0.1.0)

Copy Markdown View Source

Validates an OAuth authorization-code request before client lookup or consent.

Summary

Types

t()

@type t() :: %TamaOAuth.AuthorizationRequest{
  client_id: String.t(),
  code_challenge: String.t(),
  redirect_uri: String.t(),
  resource: String.t(),
  scope: String.t(),
  state: String.t()
}

Functions

validate(params, opts)

@spec validate(
  map(),
  keyword()
) :: {:ok, t()} | {:error, TamaOAuth.Error.t()}