IndieWeb.Auth.Code.Adapter behaviour (IndieWeb v0.0.56) View Source

Provides an abstraction regarding code actions for IndieAuth.

Link to this section Summary

Link to this section Callbacks

Specs

destroy(code :: binary(), options :: keyword()) :: :ok

Specs

generate() :: binary()
Link to this callback

generate_challenge(client_id, redirect_uri, data)

View Source

Specs

generate_challenge(
  client_id :: binary(),
  redirect_uri :: binary(),
  data :: map()
) :: {binary(), binary(), binary()}
Link to this callback

persist(code, client_id, redirect_uri, args, options)

View Source

Specs

persist(
  code :: binary(),
  client_id :: binary(),
  redirect_uri :: binary(),
  args :: map(),
  options :: keyword()
) :: :ok | {:error, any()}
Link to this callback

verify(code, client_id, redirect_uri, options)

View Source

Specs

verify(
  code :: binary(),
  client_id :: binary(),
  redirect_uri :: binary(),
  options :: keyword()
) :: :ok | {:error, any()}
Link to this callback

verify_challenge(code_challenge, client_id, redirect_uri, data, options)

View Source

Specs

verify_challenge(
  code_challenge :: binary(),
  client_id :: binary(),
  redirect_uri :: binary(),
  data :: map(),
  options :: keyword()
) :: :ok | {:error, any()}