Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).