View Source Boruta.Oauth.CodeRequest (Boruta core v2.1.5)

Code request

Link to this section Summary

Types

t()

Type representing a code request as stated in OAuth 2.0 RFC.

Link to this section Types

Specs

t() :: %Boruta.Oauth.CodeRequest{
  client_id: String.t(),
  code_challenge: String.t(),
  code_challenge_method: String.t(),
  grant_type: String.t(),
  nonce: String.t(),
  redirect_uri: String.t(),
  resource_owner: struct(),
  response_type: term(),
  response_types: String.t(),
  scope: String.t(),
  state: String.t()
}

Type representing a code request as stated in OAuth 2.0 RFC.

Note : resource_owner is an addition that must be provided by the application layer.

Link to this section Functions

Link to this function

require_nonce?(code_request)

View Source

Specs

require_nonce?(request :: t()) :: boolean()