PlugSignature.Callback.client_lookup

You're seeing just the callback client_lookup, go back to PlugSignature.Callback module for more information.
Link to this callback

client_lookup(key_id, algorithm, conn)

View Source

Specs

client_lookup(key_id :: binary(), algorithm :: binary(), conn :: Plug.Conn.t()) ::
  {:ok, any(), :public_key.public_key() | binary()} | {:error, String.t()}

Takes the keyId from the parsed Authorization header, the algorithm name and the Plug.Conn struct, and returns a success or error tuple.

In case of success, an application-specific term is returned that identifies the client, along with that client's credentials (a public key or HMAC secret).

The Plug.Conn struct may be used to select the relevant client, but it cannot be modified. For instance, the hostname of the request may be needed to select the correct client in a multi-tennant application.