pub async fn configure_auth(
signer: Option<&AuthSignerConfig>,
private_key: Option<String>,
public_key: Option<String>,
options: &mut ServerOptions,
kv: Arc<dyn KvStore>,
) -> Result<Auth>Expand description
Build the control-plane Auth from the resolved
root-key settings (flag/env > serve config). For an issuing node (a
private key or an external signer) it also sets options.issuer so the
token-create and OIDC-exchange routes can mint. No key ⇒ auth disabled (dev).