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
| 37 | // typically you would implement this as a layer on top of your database |
| 38 | // for simplicity this example keeps everything in-memory |
| 39 | type 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 | |
| 54 | type signingKey struct { |
| 55 | id string |
nothing calls this directly
no outgoing calls
no test coverage detected