DBTokenProvider provides authentication and authorization for workspace apps by querying the database if the request is missing a valid token.
| 34 | // DBTokenProvider provides authentication and authorization for workspace apps |
| 35 | // by querying the database if the request is missing a valid token. |
| 36 | type DBTokenProvider struct { |
| 37 | Logger slog.Logger |
| 38 | ctx context.Context |
| 39 | |
| 40 | // DashboardURL is the main dashboard access URL for error pages. |
| 41 | DashboardURL *url.URL |
| 42 | Authorizer rbac.Authorizer |
| 43 | ConnectionLogger *atomic.Pointer[connectionlog.ConnectionLogger] |
| 44 | Database database.Store |
| 45 | DeploymentValues *codersdk.DeploymentValues |
| 46 | OAuth2Configs *httpmw.OAuth2Configs |
| 47 | WorkspaceAgentInactiveTimeout time.Duration |
| 48 | WorkspaceAppAuditSessionTimeout time.Duration |
| 49 | Keycache cryptokeys.SigningKeycache |
| 50 | } |
| 51 | |
| 52 | var _ SignedTokenProvider = &DBTokenProvider{} |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected