Skip to content

feat: add session actor middleware #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
chore: remove system actor
  • Loading branch information
deansheather committed Apr 8, 2022
commit 175aa8c7a4fcc3df7e9af4ef45a805c819c78641
9 changes: 0 additions & 9 deletions coderd/access/session/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type ActorType string

// ActorTypes.
const (
ActorTypeSystem ActorType = "system"
ActorTypeAnonymous ActorType = "anonymous"
ActorTypeUser ActorType = "user"
)
Expand All @@ -28,14 +27,6 @@ type Actor interface {
// TODO: Steven - RBAC methods
}

// ActorTypeSystem represents the system making an authenticated request against
// itself. This should be used if a function requires an Actor but you need to
// skip authorization.
type SystemActor interface {
Actor
System()
}

// AnonymousActor represents an unauthenticated API client.
type AnonymousActor interface {
Actor
Expand Down
22 changes: 0 additions & 22 deletions coderd/access/session/system.go

This file was deleted.

18 changes: 0 additions & 18 deletions coderd/access/session/system_test.go

This file was deleted.