https://github.com/threez/keycloak.cr
Access the keycloak admin API from Crystal
https://github.com/threez/keycloak.cr
Last synced: 6 months ago
JSON representation
Access the keycloak admin API from Crystal
- Host: GitHub
- URL: https://github.com/threez/keycloak.cr
- Owner: threez
- License: mit
- Created: 2023-05-05T14:43:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-11T19:48:08.000Z (about 3 years ago)
- Last Synced: 2025-04-01T13:16:13.385Z (over 1 year ago)
- Language: Crystal
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keycloak [](https://github.com/threez/keycloak.cr/actions/workflows/ci.yml) [](https://threez.github.io/keycloak.cr/)
Access the keycloak admin API from Crystal.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
keycloak:
github: threez/keycloak.cr
```
2. Run `shards install`
## Usage
```crystal
require "keycloak"
KC = Keycloak::Client.new("https://id.example.de/realms/me/.well-known/openid-configuration", "client-id", "secret")
puts KC.user_groups("1f74cab4-8d90-4956-bb54-ecac9176404f")
```
TODO: Write usage instructions here
## Implemented
* Users
* Groups
## TODO
### Keycloak
* Attack Detection
* Authentication Management
* Client Attribute Certificate
* Client Initial Access
* Client Registration Policy
* Client Role Mappings
* Client Scopes
* Clients
* Component
* Identity Providers
* Key
* Protocol Mappers
* Realms Admin
* Role Mapper
* Roles
* Roles (by ID)
* Scope Mappings
### Extensions
* [Organizations (PhaseTwo)](https://phasetwo.io/api/phase-two-admin-rest-api/)
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Vincent Landgraf](https://github.com/threez) - creator and maintainer