Commit Graph
26 Commits
Author SHA1 Message Date
Umputun be00380b5a lint: spell fix 2018-09-15 14:18:28 -05:00
Umputun dc59fc9f7b adjust test for key store 2018-09-12 00:34:36 -05:00
Umputun a71907fd8e reduce frome AdminStore to KeyStore in Authenticator 2018-09-12 00:28:00 -05:00
Umputun bb0096dd3d add test for empty user in a token 2018-09-11 14:22:02 -05:00
Umputun 6458f622d2 refactor to combine admin and key store 2018-09-11 11:58:50 -05:00
Umputun 396b77e4ff info messages and less verbose auth with dev 2018-09-11 00:36:46 -05:00
Umputun 3ab05490b4 lint: warn on basic auth and non-handled err in gridfs avatar 2018-09-07 14:48:58 -05:00
Umputun 1b3904a307 populate common params to commands 2018-09-05 02:13:57 -05:00
UmputunandGitHub 84e7770359 Feature/admin-migrator (#198)
* auth with a secret as admin

* get rid of separate migrator service

* clean sanitize dbg prints

* fix dbg logging and set migrator routes
2018-09-03 23:13:29 -05:00
Umputun 3cc6762ebf add comments 2018-09-02 23:14:29 -05:00
UmputunandGitHub 0cd76dfd2f Feature/admin_store (#197)
* generalize admins and email info with store interface

* lint: missing group comment

* fix admin group with shared substruct
2018-09-02 13:00:20 -05:00
UmputunandGitHub ba6bab5b91 Feature/cmd (#195)
* support flags commands, move to cmd

* fix target name

* test for happy path importer

* add export cmd

* fix wrong import, lint warns

* increase test timeout

* add sellp to allow main test server to start

* implement all cmds

* handle backup/restore errors

* fix import status check, hide secret from logs

* backup cmd err tests

* randimize test port

* avoid dup code in Last controller

* add target to make all bin archives

* remove container in make

* add smiple scripts to simplify commands, update readme

* add docs on dockerless, enforce app user

* add restore info

* move last to lastCommentsScope const
2018-08-26 21:45:04 -05:00
Umputun 8503e31f64 reformat imports 2018-08-15 22:14:30 -05:00
UmputunandGitHub 1b9ee3d763 feature/keystore (#185)
* add keyStore and switch all secret usage to this store

- implement static ks
- add shared secret

* lint: shadow in jwt and missing comment

* rename static key group to shared and use top-level shared secret

* move siteID extraction (from token) to internal func

* lint: merge var and assign for key test
2018-08-08 14:33:18 -05:00
Umputun 0ae7f226af extend jwt claim with flags 2018-07-18 21:05:51 -05:00
Umputun 3abe4146b1 add deleteme flag to jwt token
it should prevent misuse of laked token to request user's data removal
2018-07-18 16:56:23 -05:00
Umputun 62a5d7196e add comments to dev oauth 2018-07-11 15:27:18 -05:00
Umputun 42b9baf0f3 respect REMARK_URL for dev callback #159 2018-07-11 13:42:00 -05:00
Umputun b2a8434f9a add automatic github-style avatar for dev auth #106 2018-07-10 12:19:10 -05:00
Umputun 955a2cd1da add comments 2018-06-29 00:09:59 -05:00
Umputun ca8a20ba7e lint: missing error check 2018-06-28 02:03:16 -05:00
Umputun 3cde98a480 add abilty to enter custom dev user #106 2018-06-28 01:58:53 -05:00
Umputun 822ef7df34 fix auth url spec 2018-06-27 19:32:01 -05:00
Umputun 030f26bbef make permissions checker mandatory 2018-06-27 02:12:25 -05:00
UmputunandGitHub 7a6eca56b1 feature/jwtcleanup (#113)
* remove extra dmin check, add blocking check via jwt and auth middleware
* short jwt and refresh for expired
* lint: missing comment on UserFlager
* simplify user management in auth refresh
* allow custom max cookie age
* test blocked user
* reset cookie for blocked user
* move admin perm detection to data service
* customizable ttl with opts as a part of auth group
* add local auth provider dev
* main minimal test for dev auth mode
* add comments and update docs with current params
* add admin and auth_dev flags
* comments for dev compose
* lint: shadow err
2018-06-27 01:43:13 -05:00
UmputunandGitHub 7aee7add08 Feature/backend (#101)
* move backend code #99

* adjust drone build for backend subdir

* move .rest to backend
2018-06-23 12:31:19 -05:00