Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/veandco/keycloak-api-key-provider-example
https://github.com/veandco/keycloak-api-key-provider-example
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/veandco/keycloak-api-key-provider-example
- Owner: veandco
- Created: 2019-11-06T04:50:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-12T21:12:00.000Z (about 1 year ago)
- Last Synced: 2024-10-29T21:05:51.737Z (22 days ago)
- Language: Java
- Size: 17.6 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Keycloak API Key Provider example
This is a simple API Key generator that creates API Key when user
registers or is created by the admin.The API key will be put under the user's `attributes` as `api-key`.
## Requirements
Maven needs to be installed first.
## Installation
1. Run `mvn install` in the directory.
2. Copy `.jar` file from `target` directory into Keycloak's
`standalone/deployments` directory. Keycloak will hot-reload.
3. It should be done! Now you can try to register or add a user and
check for the `api-key` attribute.## Credits
Most of the work here came from [zak905's repo](https://github.com/zak905/keycloak-api-key-demo). All I did is simplify
the example to do only the things that I need which is API key
generation on Keycloak (without Docker and the web services).