This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/server
Eric Chiang 4da143ca2d server: fix reset password test
TestResetPasswordHandler depended on makeToken begin called twice
during the initialization of a single test case and later assuming
the result would match. Because the token has a timestamp accurate
to the second, occasionally the timestamps would be slightly off
within a single test case and cause the test to fail.

Adding a sleep statement to makeToken would cause the test to fail
reliably.

Define a single token for each test case outside of the struct
initializer so test cases compare the same token.

Closes #274

Additionally remove logging statements that dump entire HTML pages.
2016-01-19 19:45:16 -08:00
..
admin.go server, integration, cmd: Protect Admin API 2015-10-01 13:15:45 -07:00
auth_middleware.go *: Remove unnecessary else statements 2015-09-04 22:45:32 +03:00
auth_middleware_test.go *: move original project to dex 2015-08-18 11:26:57 -07:00
client_resource.go *: move original project to dex 2015-08-18 11:26:57 -07:00
client_resource_test.go *: move original project to dex 2015-08-18 11:26:57 -07:00
config.go user/manager: connector must exists when creating remote identity 2015-12-07 17:34:08 -08:00
discovery_resource.go *: move original project to dex 2015-08-18 11:26:57 -07:00
discovery_resource_test.go *: move original project to dex 2015-08-18 11:26:57 -07:00
email_verification.go user: move user manager to it's own package 2015-12-07 15:34:14 -08:00
email_verification_test.go *: move original project to dex 2015-08-18 11:26:57 -07:00
error.go *: move original project to dex 2015-08-18 11:26:57 -07:00
error_test.go *: move original project to dex 2015-08-18 11:26:57 -07:00
http.go server: better UX when remote ID already exists 2015-12-23 17:11:03 -08:00
http_test.go server: fix tests 2015-12-16 18:20:14 -08:00
invitation.go user: move user manager to it's own package 2015-12-07 15:34:14 -08:00
invitation_test.go server: endpoint and system for sending invitations to dex 2015-11-18 14:24:19 -08:00
password.go user: move user manager to it's own package 2015-12-07 15:34:14 -08:00
password_test.go server: fix reset password test 2016-01-19 19:45:16 -08:00
register.go server: better UX when remote ID already exists 2015-12-23 17:11:03 -08:00
register_test.go server: better UX when remote ID already exists 2015-12-23 17:11:03 -08:00
serialization.go *: move original project to dex 2015-08-18 11:26:57 -07:00
serialization_test.go *: move original project to dex 2015-08-18 11:26:57 -07:00
server.go Merge pull request #246 from bobbyrullo/maybe 2015-12-23 18:17:54 -08:00
server_test.go refreshtoken: return base64 encoded token for in-memory backend. 2015-10-12 14:51:52 -07:00
testutil.go server: better UX when remote ID already exists 2015-12-23 17:11:03 -08:00
user.go user: move user manager to it's own package 2015-12-07 15:34:14 -08:00