- ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
- Rails 5.1.6
- gem 'keycloak', '~> 2.3', '>= 2.3.2'
This is a simple example of how to build an application using gem Keycloak and using the views from your own application.
1. Clone this project
2. Create a new realm:
3. Configure a email to send then "forgot password" email:
4. Create a new client in the realm:
5. Create a new role in the client:
6. Export installation.json file and paste in application folder. The gem will get client information at this file.:
7. Install application gems:
$ bundle
8. Create database:
$ rails db:create
$ rails db:migrate
9. Start application:
$ rails s
11. Create a new user:
12. See the new user in Keycloak:
13. Sign In and access the main screen:
14. Click in "Logout":
15. Click in "Logout":
16. Click in "I forgot my password":
17. See your email:
In docs folder there are the realm file exported and all images of this documentation.