A simple utility to wrap OAuth2 usage in KeyCloak. Build with Java 8, and using these additional libraries:
-
ScribeJava
-
FusionAuth-JWT
-
Unirest
-
Logback
Features included are helper to interfacing with keycloak for these functions:
- Login with OAuth2
- Logout with OAuth2
- Reset Password based on user's email
- Change Password based on user's email
- Create new user
- Enabled user
- Get Keycloak's UserId based on email
Use mvn package to build the module into jar file
mvn clean package
- Add the jar library into your project. Don't forget to also add these dependencies into your project:
- Scribejava
- Fusionauth-jwt
- Unirest
- Logback
For feedback and feature request, please raise issues in the issue section of the repository. Enjoy!!.