Skip to content

Commit

Permalink
Keep track of access requests in app sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini committed Jan 26, 2022
1 parent cd83345 commit 1c74c77
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/auth/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ func (s *Server) CreateAppSession(ctx context.Context, req types.CreateAppSessio
return nil, trace.Wrap(err)
}
certs, err := s.generateUserCert(certRequest{
user: user,
publicKey: publicKey,
checker: checker,
ttl: ttl,
traits: traits,
user: user,
publicKey: publicKey,
checker: checker,
ttl: ttl,
traits: traits,
activeRequests: services.RequestIDs{AccessRequests: identity.ActiveRequests},
// Only allow this certificate to be used for applications.
usage: []string{teleport.UsageAppsOnly},
// Add in the application routing information.
Expand Down

0 comments on commit 1c74c77

Please sign in to comment.