Documentation
¶
Overview ¶
Package clientassertion records the JWT IDs of used client assertions so that a signed assertion cannot be replayed before it expires. It provides the JTI half of Fosite's ClientManager for Ent-backed storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JTIStore ¶
type JTIStore struct {
// contains filtered or unexported fields
}
JTIStore tracks used client-assertion JWT IDs in the database.
func NewJTIStore ¶
NewJTIStore returns a JTIStore backed by db.
type MemoryJTIStore ¶
type MemoryJTIStore struct {
// contains filtered or unexported fields
}
MemoryJTIStore tracks used client-assertion JWT IDs in memory, with the same semantics as JTIStore. It suits a single instance; replicas need the database-backed store, since a replayed assertion can reach any of them.
func NewMemoryJTIStore ¶
func NewMemoryJTIStore() *MemoryJTIStore
NewMemoryJTIStore returns an empty MemoryJTIStore.
Click to show internal directories.
Click to hide internal directories.