Files
paralus/components/usermgmt
akshay196-rafay a2f03c60da Authentication interceptor (#14)
Changes in this PR include
- Authenticate gRPC requests
- Initial file structure for authentication and authorization service
- Use Auth middleware and interceptor service in usermgmt component
- Authenticate HTTP request based on Kratos API token
- Add Auth middleware to adminsrv component
- Name the Grpc metadata fields
- Maintain session data after authentication
- Removed http middleware as it is not necessary
- Exclude rpc methods from authentication
- Handle error in auth interceptor
- Revert to with cancel context
- Log authentication failed requests and New function in authv3
- Initiate authContext struct in authv3 package using new public
- function NewAuthContext.
2022-02-23 11:18:49 +05:30
..
2022-02-03 11:04:01 +05:30
2022-02-21 17:11:11 +05:30
2022-02-03 11:04:01 +05:30
2022-02-03 11:04:01 +05:30
2022-02-03 11:04:01 +05:30
2022-02-23 11:18:49 +05:30
2022-02-23 11:18:49 +05:30
2022-02-23 11:18:49 +05:30
2022-02-21 17:11:11 +05:30

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