Commit graph

18 commits

Author SHA1 Message Date
Sam Chow
cc9bedbeb9 refactor approval service key to not need approver 2018-08-15 17:18:41 -04:00
Joseph Schorr
406082be74 Move permissions test to pytest 2018-07-18 11:14:27 -04:00
Joseph Schorr
a1c06042c6 Add a unique_key fields to the auth context type for tracking different instances
This will allow us to lookup a cache for the catalog without needing to make a database call
2018-06-19 11:09:58 -04:00
Joseph Schorr
913952ae27 Make signed grant tests stable across runs
This was preventing us from running tests in parallel, since the names were changing
2018-06-01 17:06:56 -04:00
Brad Ison
d1ba2dcfc3 Add labels to test cases for invalid JWTs 2018-02-26 12:55:49 -05:00
Joseph Schorr
e220b50543 Refactor auth code to be cleaner and more extensible
We move all the auth handling, serialization and deserialization into a new AuthContext interface, and then standardize a registration model for handling of specific auth context types (user, robot, token, etc).
2018-02-14 15:35:27 -05:00
Joseph Schorr
888b564a9b Add a banner to the Quay UI when an app specific token is about to expire 2018-01-04 15:27:42 -05:00
Joseph Schorr
524d77f527 Add an AppSpecificAuthToken data model for app-specific auth tokens. These will be used for the Docker CLI in place of username+password 2018-01-04 15:27:41 -05:00
Joseph Schorr
0bcda90c6e Add kind to credentials validate call 2017-12-06 13:52:24 -05:00
Joseph Schorr
6f3d9a6fce Extract credential handling into its own module
Will be used in Docker V1 and APPR protocols
2017-12-06 13:52:24 -05:00
Jimmy Zelinskie
1040c939bf auth.test: merge registry jwt into one pytest file 2017-07-12 15:14:12 -04:00
Jimmy Zelinskie
880871a2ea auth.test: increase duration to avoid flakes 2017-07-12 15:14:12 -04:00
Jimmy Zelinskie
8a6417869d auth/test: add missing module db setup 2017-07-12 15:14:12 -04:00
Jimmy Zelinskie
da4fb02423 auth/test: yapf format 2017-07-12 15:14:12 -04:00
Jimmy Zelinskie
92877fa70f auth.test.test_registry_jwt: rm endpoints.v2 dep 2017-07-12 15:14:12 -04:00
Jimmy Zelinskie
7d1bbbfe19 test: convert registry auth test to pytest
This also moves them into the auth package.
2017-07-12 15:14:12 -04:00
Joseph Schorr
7debd44b54 Switch fixture imports to wildcard in prep for full db test fixes 2017-04-24 16:45:14 -04:00
Joseph Schorr
651666b60b Refactor our auth handling code to be cleaner
Breaks out the validation code from the auth context modification calls, makes decorators easier to define and adds testing for each individual piece. Will be the basis of better error messaging in the following change.
2017-03-23 15:42:45 -04:00