From 8fd1481f5202ea99c6eecdf39367cd340cc31f34 Mon Sep 17 00:00:00 2001 From: Humberto Date: Fri, 24 Sep 2021 04:28:39 +0100 Subject: [PATCH] Add information on how to use it to readme (#16) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d84b25c..e621efe 100755 --- a/README.md +++ b/README.md @@ -25,10 +25,13 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali ```ruby Rails.application.config.middleware.use OmniAuth::Builder do provider :keycloak_openid, 'Example-Client', '19cca35f-dddd-473a-bdd5-03f00d61d884', - client_options: {site: 'https://example.keycloak-url.com', realm: 'example-realm'} + client_options: {site: 'https://example.keycloak-url.com', realm: 'example-realm'}, + name: 'keycloak' end ``` +This will allow a POST request to `auth/keycloak` + ## Devise Usage Adapted from [Devise OmniAuth Instructions](https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview)