Skip to content

Commit

Permalink
Restore examplebroker behavior (#10)
Browse files Browse the repository at this point in the history
Restore previous behavior was acking on some challenges
  • Loading branch information
didrocks committed Aug 8, 2023
2 parents eb81927 + e524618 commit f46ab4a
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 f46ab4a

Please sign in to comment.