https://github.com/imio/pas.plugins.kimug
A PAS plugins to set roles for iMio users from Keycloak
https://github.com/imio/pas.plugins.kimug
Last synced: 3 days ago
JSON representation
A PAS plugins to set roles for iMio users from Keycloak
- Host: GitHub
- URL: https://github.com/imio/pas.plugins.kimug
- Owner: IMIO
- License: other
- Created: 2025-02-18T12:38:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-11T14:34:50.000Z (10 months ago)
- Last Synced: 2025-03-11T15:45:06.356Z (10 months ago)
- Language: Python
- Size: 367 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.GPL
Awesome Lists containing this project
README
# pas.plugins.kimug
A PAS plugin to set roles to imio keycloak users
Kimug is a acronym for "Keycloak IMio User & Group"
## Installation
### Install pas.plugins.kimug:
```shell
make build
```
### Create the Plone site:
```shell
make create-site
```
## Test environment
### export imio realm
```shell
cd tests && docker compose exec keycloak /opt/keycloak/bin/kc.sh export --file /opt/keycloak/data/import/realm-imio.json --realm imio
docker compose exec keycloak /opt/keycloak/bin/kc.sh export --file /opt/keycloak/data/import/realm-plone.json --realm plone
```
### Tests credentials
- login : kimug
- email : kimug@imio.be
- password : kimug
### Run test
```shell
.venv/bin/tox -e test -s
```
or only one class
```shell
.venv/bin/pytest tests -s -k TestMigration
```
## Contribute
- [Issue Tracker](https://github.com/imio/pas.plugins.kimug/issues)
- [Source Code](https://github.com/imio/pas.plugins.kimug/)
## License
The project is licensed under GPLv2.