[camel-spring-boot] branch master updated: Corrected userNameAttribute default

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel-spring-boot] branch master updated: Corrected userNameAttribute default

acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/master by this push:
     new d0a929a  Corrected userNameAttribute default
d0a929a is described below

commit d0a929a1d9e220f73d95a1822563243465e39fb9
Author: Dietrich Schulten <[hidden email]>
AuthorDate: Sat Aug 1 10:23:41 2020 +0200

    Corrected userNameAttribute default
   
    The corresponding jwt claim is `preferred_username` in keycloak, not `preffered_username`
---
 .../undertow/spring/boot/providers/KeycloakProviderConfiguration.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components-starter/camel-undertow-spring-security-starter/src/main/java/org/apache/camel/undertow/spring/boot/providers/KeycloakProviderConfiguration.java b/components-starter/camel-undertow-spring-security-starter/src/main/java/org/apache/camel/undertow/spring/boot/providers/KeycloakProviderConfiguration.java
index 6b00cbe..b8727f6 100644
--- a/components-starter/camel-undertow-spring-security-starter/src/main/java/org/apache/camel/undertow/spring/boot/providers/KeycloakProviderConfiguration.java
+++ b/components-starter/camel-undertow-spring-security-starter/src/main/java/org/apache/camel/undertow/spring/boot/providers/KeycloakProviderConfiguration.java
@@ -29,7 +29,7 @@ import java.net.URISyntaxException;
 /**
  * Configuration of provider for the Keycloak server.
  *
- * Requires 4 attributes: server url, realmId, clientId and userNameAttribute (with default value "preffered_username")
+ * Requires 4 attributes: server url, realmId, clientId and userNameAttribute (with default value "preferred_username")
  */
 public class KeycloakProviderConfiguration extends AbstractProviderConfiguration {
 
@@ -48,7 +48,7 @@ public class KeycloakProviderConfiguration extends AbstractProviderConfiguration
     /**
      * Name of the attribute, which will be used as username.
      */
-    private String userNameAttribute = "preffered_username";
+    private String userNameAttribute = "preferred_username";
 
     @Override
     public TYPE getType() {