-
- Downloads
Implement Push Auth support for 2FA verification
When `2fa_verify` command is executed: - A user is asked to enter OTP - A blocking call for push auth is performed Then: - If the push auth request fails, the user is still able to enter OTP - If OTP is invalid, the `2fa_verify` command ends the execution - If OTP is valid or push auth request succeeded, then the user is successfully authenticated - If 30 seconds passed while no OTP or Push have been provided, then the `2fa_verify` command ends the execution
Showing
- internal/command/twofactorverify/twofactorverify.go 108 additions, 14 deletionsinternal/command/twofactorverify/twofactorverify.go
- internal/command/twofactorverify/twofactorverifymanual_test.go 55 additions, 22 deletions...nal/command/twofactorverify/twofactorverifymanual_test.go
- internal/command/twofactorverify/twofactorverifypush_test.go 144 additions, 0 deletionsinternal/command/twofactorverify/twofactorverifypush_test.go
- internal/gitlabnet/twofactorverify/client.go 24 additions, 9 deletionsinternal/gitlabnet/twofactorverify/client.go
- internal/gitlabnet/twofactorverify/clientmanual_test.go 14 additions, 14 deletionsinternal/gitlabnet/twofactorverify/clientmanual_test.go
- internal/gitlabnet/twofactorverify/clientpush_test.go 139 additions, 0 deletionsinternal/gitlabnet/twofactorverify/clientpush_test.go
- spec/gitlab_shell_two_factor_manual_verify_spec.rb 13 additions, 2 deletionsspec/gitlab_shell_two_factor_manual_verify_spec.rb
- spec/gitlab_shell_two_factor_push_verify_spec.rb 71 additions, 0 deletionsspec/gitlab_shell_two_factor_push_verify_spec.rb
Please register or sign in to comment