MCPcopy
hub / github.com/zitadel/oidc / Storage

Struct Storage

example/server/storage/storage.go:39–52  ·  view source on GitHub ↗

storage implements the op.Storage interface typically you would implement this as a layer on top of your database for simplicity this example keeps everything in-memory

Source from the content-addressed store, hash-verified

37// typically you would implement this as a layer on top of your database
38// for simplicity this example keeps everything in-memory
39type Storage struct {
40 lock sync.Mutex
41 authRequests map[string]*AuthRequest
42 codes map[string]string
43 tokens map[string]*Token
44 clients map[string]*Client
45 userStore UserStore
46 services map[string]Service
47 refreshTokens map[string]*RefreshToken
48 signingKey signingKey
49 deviceCodes map[string]deviceAuthorizationEntry
50 userCodes map[string]string
51 serviceUsers map[string]*Client
52}
53
54type signingKey struct {
55 id string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected