makefile: permissions implemented.

master
Philippe Pittoli 2023-06-15 00:03:12 +02:00
parent 9ce976afc6
commit 8bcae74efc
1 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,16 @@ add-first-user:
add-user: add-user:
./bin/authc user add $(NAME) $(EMAIL) $(LOGIN_OPT) ./bin/authc user add $(NAME) $(EMAIL) $(LOGIN_OPT)
SERVICE ?= 'auth'
RESOURCE ?= '*'
UID ?= 1000
permission-check:
./bin/authc permission check $(UID) $(SERVICE) $(RESOURCE) $(LOGIN_OPT)
PERMISSION ?= Read
permission-set:
./bin/authc permission set $(UID) $(SERVICE) $(RESOURCE) $(PERMISSION) $(LOGIN_OPT)
################### ###################
### DEVELOPER TOOLS ### DEVELOPER TOOLS