KemalIdentity::Testing::MemoryLinkRepository
Inherits KemalIdentity::Federation::LinkRepository < Reference < Object
In-memory Federation::LinkRepository, passing the same contract the database adapters must.
Constructors
Instance methods
The account (issuer, subject) belongs to, or nil.
The hot path of a federated login, and the only lookup that may decide who somebody is.
Every external identity attached to an account, for a management screen. Oldest first.
Records that this link was just used to authenticate. Returns false for an unknown pair.
Removes one link. Returns false if it was not there.
An application that offers this must make sure the account keeps some way in — removing the only link from an account with no password is how somebody is locked out permanently. That check belongs in the application, which is the only thing that knows what else the account has.