aboutsummaryrefslogtreecommitdiffstats
path: root/rust/tests/test_auth.rs
Commit message (Collapse)AuthorAgeFilesLines
* rust: fix macaroon expiry checkBryan Newbold2019-04-091-0/+7
| | | | | | | | | | | | | There were two bugs with this code: the expiry timestamps were getting enclosed in double-quotes (which caused parse bugs), and the actual caveat check itself was backwards (expires < now instead of expires > now). An underlying issue was that these caveats weren't actually getting checked in the tests. Should fix a bug where users don't get auth'd correctly when logging in via mechanisms other than tokens.
* refactor: FatCatId -> FatcatIdBryan Newbold2019-01-091-3/+3
|
* huge refactor of rust modules/filesBryan Newbold2019-01-081-10/+7
| | | | | | Taking advantage of new Rust 2018 crate/module path changes, and re-organizing things. Somewhat optimistic this could help with partial rebuild speed also.
* squelch more build warningsBryan Newbold2019-01-081-1/+0
|
* rust fmtBryan Newbold2019-01-081-1/+2
|
* iterate on macaroon time caveat namesBryan Newbold2019-01-081-2/+1
|
* add superuser role/flagBryan Newbold2019-01-041-3/+3
|
* crude admin auth in testsBryan Newbold2018-12-311-1/+2
|
* rustfmt; implement role-based auth checksBryan Newbold2018-12-311-7/+5
|
* include unwrap() in testsBryan Newbold2018-12-291-1/+1
|
* basic auth unittestsBryan Newbold2018-12-281-0/+48