Skip to content

Commit

Permalink
Update examplebroker.go
Browse files Browse the repository at this point in the history
Restore previous behavior was acking on some challenges
  • Loading branch information
didrocks authored Aug 8, 2023
1 parent eb81927 commit e524618
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/brokers/examplebroker/examplebroker.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ func (b *Broker) handleIsAuthorized(ctx context.Context, sessionInfo sessionInfo
// Send notification to phone1 and wait on server signal to return if OK or not
select {
case <-time.After(5 * time.Second):
return responses.AuthDenied, "", nil
case <-ctx.Done():
return responses.AuthCancelled, "", nil
}
Expand All @@ -401,7 +400,6 @@ func (b *Broker) handleIsAuthorized(ctx context.Context, sessionInfo sessionInfo
// simulate direct exchange with the FIDO device
select {
case <-time.After(5 * time.Second):
return responses.AuthDenied, "", nil
case <-ctx.Done():
return responses.AuthCancelled, "", nil
}
Expand All @@ -413,7 +411,6 @@ func (b *Broker) handleIsAuthorized(ctx context.Context, sessionInfo sessionInfo
// Simulate connexion with remote server to check that the correct code was entered
select {
case <-time.After(4 * time.Second):
return responses.AuthDenied, "", nil
case <-ctx.Done():
return responses.AuthCancelled, "", nil
}
Expand Down

0 comments on commit e524618

Please sign in to comment.