Current section

Files

Jump to
boruta lib boruta oauth requests authorization_code_request.ex
Raw

lib/boruta/oauth/requests/authorization_code_request.ex

defmodule Boruta.Oauth.AuthorizationCodeRequest do
@moduledoc """
Authorization code request
"""
@typedoc """
Type representing an authorization code request as stated in [OAuth 2.0 RFC](https://tools.ietf.org/html/rfc6749#section-4.1.3).
"""
@type t :: %__MODULE__{
client_id: String.t(),
redirect_uri: String.t(),
code: String.t(),
grant_type: String.t(),
code_verifier: String.t()
}
defstruct client_id: "", redirect_uri: "", code: "", grant_type: "authorization_code", code_verifier: ""
end