Min RK
fea683f992
redirect root to /hub/login instead of authenticator.login_url
...
/hub/login always renders a page,
whereas `authenticator.login_url` may automatically log the user in via redirects,
causing logout to appear not to work, as redirects immediately cause login again.
2017-02-03 12:51:03 +01:00
Min RK
3402f4f514
Merge pull request #966 from minrk/service-token-auth
...
support service tokens in HubAuth
2017-02-01 13:11:32 +01:00
Carol Willing
3bb82ea330
Merge pull request #949 from willingc/test-mock
...
Refactor test classes used to mock services
2017-01-27 05:43:29 -08:00
Carol Willing
bced09e5b3
Add file docstring from @minrk
2017-01-27 05:19:05 -08:00
Carol Willing
9e84402f42
Edit docstrings to clarify handlers are not mocked
2017-01-27 04:58:29 -08:00
Min RK
18c65453fd
Merge pull request #965 from willingc/test-proxy
...
Refactor proxy tests
2017-01-27 13:40:28 +01:00
Carol Willing
57ed99020f
Edit comment
2017-01-27 04:19:43 -08:00
Carol Willing
caa3b0c438
Parameterize test values
2017-01-27 04:14:51 -08:00
Carol Willing
5133cf0275
Add some comments
2017-01-27 04:14:51 -08:00
Carol Willing
7f6c080b46
Fix pep8 errors
2017-01-27 04:14:51 -08:00
Carol Willing
142907395f
Use pytest parameterize for proxy tests; fix spacing
2017-01-27 04:14:51 -08:00
Min RK
43d069438e
Merge pull request #956 from willingc/test-api
...
Refactor API tests
2017-01-27 10:36:14 +01:00
Carol Willing
e7b73c4f53
Add docstrings and remove request_received
2017-01-26 13:58:38 -08:00
Carol Willing
f2ca0a2372
Implement all methods for classes that inherit from abstract class
2017-01-26 12:54:11 -08:00
Carol Willing
021cfe446f
Fix formatting on a few requests
2017-01-26 12:41:39 -08:00
Carol Willing
1a71c906d5
Revert "Relax line length for requests"
2017-01-26 12:26:02 -08:00
Carol Willing
10d2eb6449
Return to original style for line length for requests
2017-01-26 12:20:19 -08:00
Carol Willing
0f283e088e
Fix minor formatting
2017-01-26 12:17:11 -08:00
Carol Willing
025977f19a
Clean up vertical spacing
2017-01-26 12:17:11 -08:00
Min RK
2a9ba788d0
shorten date_fmt in tests
...
reduces log prefix length a bit in test output
2017-01-26 11:52:59 +01:00
Min RK
aa65266726
support services in HubAuth
2017-01-26 11:52:40 +01:00
Min RK
4b6c58292b
add 'kind' field to user and group models
2017-01-26 11:48:20 +01:00
Min RK
d0813cc736
support service tokens in /api/authorizations
2017-01-26 10:44:25 +01:00
Min RK
f1d7e5e779
Merge pull request #961 from minrk/get-user-simplified
...
Enable token authentication in HubAuth
2017-01-26 09:55:35 +01:00
Min RK
66f01fc880
set login url on hub_auth
2017-01-25 22:58:10 +01:00
Min RK
d93384536f
clarify some things
...
- cleanup docstrings
- more comments
- rename cookie_cache to cache, since it's not a cache of cookies
2017-01-25 17:10:14 +01:00
Min RK
69250db70e
support token authentication in HubAuth.get_user
...
in Authorization header or `?token` parameter
enables token authentication in single-user server based on notebook >= 4.3 as well
2017-01-25 13:53:36 +01:00
Min RK
ad52398087
add get_login_url to HubAuthenticated
...
needed for tornado's default redirect
2017-01-25 13:52:14 +01:00
Min RK
4f1eec31a1
more code consolidation in HubAuth
...
consolidates duplicate code in user_for_cookie and user_for_token
into _check_hub_authorization
2017-01-25 13:50:20 +01:00
Min RK
43c02740ab
Merge pull request #960 from DeepHorizons/get_user_by_token
...
Added user_for_token method, moved r check into its own function
2017-01-25 10:39:01 +01:00
Joshua Milas
4605f74cf9
Fixed missing variable
2017-01-24 11:49:18 -05:00
Joshua Milas
9ab4b35f22
Changed error message to be more generic
2017-01-24 11:47:52 -05:00
Min RK
e9784f0e69
Merge pull request #959 from willingc/test-typo
...
Add missing assert to test
2017-01-24 13:27:51 +01:00
Min RK
3e37d0a39b
Merge pull request #958 from willingc/add-badges
...
Edit README content and update formatting
2017-01-24 13:14:57 +01:00
Min RK
44ae162f09
Merge pull request #955 from willingc/test-services
...
Refactor services tests
2017-01-24 13:13:15 +01:00
Joshua Milas
2821b9a832
Added user_for_token method, moved r check into its own function
2017-01-23 21:12:40 -05:00
Carol Willing
cf97247f75
Add missing assert to test
2017-01-23 08:33:48 -08:00
Carol Willing
1bb40e2be1
Add built-in spawner to table
2017-01-23 08:09:00 -08:00
Carol Willing
869db9e31c
Edit content and update formatting
2017-01-22 21:00:58 -08:00
Carol Willing
39ee52ad3c
Refactor services tests
2017-01-20 23:13:09 -08:00
Carol Willing
7e699af2b5
Merge pull request #953 from willingc/covfix
...
Rename test class to stub class to allow pytest collection
Closes #952
2017-01-20 14:52:39 -08:00
Min RK
2b344cc717
Merge pull request #950 from willingc/travis36
...
Add Python versions to Travis
2017-01-20 11:25:17 -10:00
Carol Willing
246f0bc442
Omit alembic directory from report
2017-01-20 12:30:46 -08:00
Carol Willing
4afb659f44
Omit travis site-packages directory from report
2017-01-20 12:25:33 -08:00
Carol Willing
a43069fc35
Correct syntax in coverage command
2017-01-20 11:35:39 -08:00
Carol Willing
5b43266278
Update coverage setting to ignore test directory
2017-01-20 11:26:19 -08:00
Carol Willing
5df16371e1
Rename class used in test cases to StubSingleUserSpawner
2017-01-20 10:49:59 -08:00
Carol Willing
c086f05c7c
Rename test class to allow pytest to collect tests
2017-01-20 10:49:59 -08:00
Carol Willing
7a38857bcd
Add Python versions to Travis
2017-01-20 08:32:52 -08:00
Min RK
e860925f57
Merge pull request #944 from barrachri/fix_patch_post_#941
...
check name collisions on rename
2017-01-19 10:38:38 -10:00