ADK.Auth.InMemoryStore (ADK v0.0.1-alpha.1)

Copy Markdown View Source

In-memory credential store using an Agent process.

Suitable for testing and development. Credentials are lost when the process stops.

Usage

{:ok, store} = ADK.Auth.InMemoryStore.start_link(name: :my_cred_store)
:ok = ADK.Auth.InMemoryStore.put("api_service", credential, server: store)
{:ok, cred} = ADK.Auth.InMemoryStore.get("api_service", server: store)

Summary

Functions

Returns a specification to start this module under a supervisor.

Start the in-memory credential store.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Agent.on_start()

Start the in-memory credential store.