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
Jake Moshenko
a0817bfd59
Refresh dependencies and fix tests.
2017-04-06 13:15:48 -04:00
Joseph Schorr
dc5af7496c
Allow superusers to disable user accounts
2015-06-29 18:40:52 +03:00
Jake Moshenko
7a5605a568
Add an exact abort and use it to send the expected response for 409s.
2014-06-11 16:55:38 -04:00
jakedt
8e9faf6121
Toward running quay in a docker container.
2014-04-07 01:20:09 -04:00
jakedt
5d2274fb05
Add CORS headers to all error responses.
2014-03-25 15:38:31 -04:00
jakedt
e74eb3ee87
Add scope ordinality and translations. Process oauth tokens and limit scopes accordingly.
2014-03-12 16:31:37 -04:00
Joseph Schorr
61ca29de04
Move the auth context methods into their own file so that we don't have auth trying to import itself
2014-02-25 15:07:24 -05:00
Joseph Schorr
a120f6c64a
Make sure all aborts have message information
2014-02-25 14:15:12 -05:00
Joseph Schorr
392e0d7c58
Change docs url
2014-01-29 15:38:25 -05:00
Joseph Schorr
3dc3af9eb2
The CLI can be… odd… when handling errors. Make them nicer for the CLI
2014-01-29 14:08:14 -05:00
Joseph Schorr
2b134158f5
Add issue URLs to most errors. The corresponding issue pages will be checked into the public docs repo
2014-01-28 18:29:45 -05:00
Joseph Schorr
c7e616edb9
Add the request URL to the reported error info
2014-01-24 20:40:22 -05:00
Joseph Schorr
aef719c71a
Add the status code and message to the mix panel reported error
2014-01-24 20:37:44 -05:00
Joseph Schorr
b1ec9c4469
Typo fix
2014-01-24 20:34:18 -05:00
Joseph Schorr
c18212f477
Meant update, not copy
2014-01-24 20:33:42 -05:00
Joseph Schorr
9650c1867b
Merge branch 'better-error' of https://bitbucket.org/yackob03/quay into better-error
...
Conflicts:
util/http.py
2014-01-24 20:32:14 -05:00
Joseph Schorr
8d074d8f3a
Add mix panel reporting to http error codes
2014-01-24 20:29:25 -05:00
yackob03
f585430399
Make abort return a json block, which is apparently what the client expects. Remove unused imports. Fix line length and kwarg problems.
2014-01-24 17:00:42 -05:00
Joseph Schorr
0d84cfdf17
Add more default messages
2014-01-24 15:26:32 -05:00
Joseph Schorr
374754c9c9
Handle if message is a non-string
2014-01-24 15:24:26 -05:00
Joseph Schorr
4cea2a6449
Nicer error formatting
2014-01-24 15:17:00 -05:00
Joseph Schorr
229eeec1be
Don’t have a headers var anymore
2014-01-24 15:12:11 -05:00
Joseph Schorr
fd4ac04b5a
HTTPException import
2014-01-24 15:10:51 -05:00
Joseph Schorr
efcbe4421d
Fix logger
2014-01-24 15:09:35 -05:00
Joseph Schorr
77f2706a19
Properly use the auth’ed objects
2014-01-24 15:06:35 -05:00
Joseph Schorr
30a26d099f
Have the index use the same abort method
2014-01-24 15:01:40 -05:00