WardrikOAuth.ClientSecrets (wardrik_oauth v0.1.0-rc.1)

Copy Markdown

Seals client secrets in the vault, not the store.

Covers providers added at runtime and clients Wardrik registers. Secrets are kept under a principal of their own that no agent acts as.

Summary

Functions

Deletes the secret under name.

Seals secret under name. Does nothing if secret is nil.

Returns the secret under name, or nil.

Functions

forget(settings, name)

@spec forget(map(), String.t()) :: :ok

Deletes the secret under name.

seal(settings, name, secret)

@spec seal(map(), String.t(), String.t() | nil) :: :ok | {:error, term()}

Seals secret under name. Does nothing if secret is nil.

unseal(settings, name)

@spec unseal(map(), String.t()) :: String.t() | nil

Returns the secret under name, or nil.