Refactor auth handling wrapper
This MR refactors the authentication wrapper authentication.validate
to make it easier to maintain. This effectively defines an 'api' for authentication types where they need to provide a '_request_has_xxx()method and a
_validate_xxx()` method.
This also improves the error handling by attempting all authentication methods, and only if they all fail do we return the first error encountered. This should enable users who have an invalid scitoken but a valid X.509 cred to gain access.
Merge request reports
Activity
changed milestone to %GWDataFind Server 1.2.0
added gwdatafind_server.authentication label
requested review from @duncan.meacher
assigned to @duncan.meacher
added 3 commits
-
177f2004...ffb88996 - 2 commits from branch
computing/gwdatafind:master
- 56087b22 - auth: refactor the auth wrapper
-
177f2004...ffb88996 - 2 commits from branch
mentioned in commit 28dd49f0
Please register or sign in to reply