Module: Identizer::IdentityStore
- Defined in:
- lib/identizer/identity_store.rb,
lib/identizer/identity_store/sqlite_store.rb
Overview
An identity store is the “user directory” half of the provider. The provider only needs this duck-typed read interface, so any backend (the default JSON ConfigStore, a future SQLite adapter, an app’s own DB) can be plugged in via ‘config.identity_store`:
#emails -> Array<String> the addresses the login form accepts
#identity_for(email) -> Identity|nil resolve an address to an Identity
For full management through the web admin a store also exposes the directory interface: #entries, #upsert(attrs), #delete(email) (the default does).
Defined Under Namespace
Classes: ConfigStore, SqliteStore