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

Provides an abstraction regarding code actions for IndieAuth.

Link to this section Summary

Link to this section Callbacks

Link to this callback

destroy(client_id, redirect_uri, args, options)

View Source

Specs

destroy(
  client_id :: binary(),
  redirect_uri :: binary(),
  args :: map(),
  options :: keyword()
) :: :ok
Link to this callback

generate(client_id, redirect_uri, data)

View Source

Specs

generate(client_id :: binary(), redirect_uri :: binary(), data :: map()) ::
  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()}
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, data, options)

View Source

Specs

verify(
  code :: binary(),
  client_id :: binary(),
  redirect_uri :: binary(),
  data :: map(),
  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()}