Files
paralus/components/usermgmt/README.md
abin-rafay 35edd2dee5 Authz integration for usermgmt (#19)
* Update dependencies from authz
* authz: fix log import path
* Authz related creation steps
* Fix typo: Namesapce -> Namespace
* Add tests for role creation interaction with authz
* Switch to using names for policy and group creation in authz
* Group creation not udpates casbin db
* Fix reading db address from env
* Tiny typo fix in readme
* Simplify error handling in usermgmt server
* Rework test setup
* Fix all current tests
* Complete authz integration
* Drop unnecessary dependency on adminsrv in usermgmt
2022-02-21 17:11:11 +05:30

537 B

User management

This module is responsible for manging users/groups/roles as well as being a frontend for the casbin internal service. All user/auth related requests go through here.

Development

Run kratos migrations

export DSN='postgres://postgres@localhost:5432/admindb?sslmode=disable'
kratos -c kratos.yaml migrate sql -e --yes

Start kratos

cd components/usermgmt/_kratos
kratos serve -c kratos.yml

Run usermgmt server

cd components/usermgmt/_kratos
go run main.go