From 0606cb4a5e5921079dad8952747eb045c84cd275 Mon Sep 17 00:00:00 2001 From: Vlastimil Elias Date: Wed, 8 Apr 2015 16:09:35 +0200 Subject: [PATCH] KEYCLOAK-1195 - added identity brokes ordering for login page --- .../en/en-US/modules/identity-broker.xml | 9 +++ .../realm-identity-provider-oidc.html | 7 +++ .../realm-identity-provider-saml.html | 7 +++ .../realm-identity-provider-social.html | 7 +++ .../partials/realm-identity-provider.html | 4 +- forms/login-freemarker/pom.xml | 6 ++ .../model/IdentityProviderBean.java | 61 ++++++++++++++++--- .../model/IdentityProviderBeanTest.java | 55 +++++++++++++++++ 8 files changed, 147 insertions(+), 9 deletions(-) create mode 100644 forms/login-freemarker/src/test/java/org/keycloak/login/freemarker/model/IdentityProviderBeanTest.java diff --git a/docbook/reference/en/en-US/modules/identity-broker.xml b/docbook/reference/en/en-US/modules/identity-broker.xml index 397fd02ca5..4c1a3c2a2e 100755 --- a/docbook/reference/en/en-US/modules/identity-broker.xml +++ b/docbook/reference/en/en-US/modules/identity-broker.xml @@ -284,6 +284,15 @@ during the authentication process. + + + GUI order + + + Allows you to define order of the provider when shown on login page. + You can put number into this field, providers with lower numbers are shown first. + + diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html index 7bf40354a3..d093744fe1 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-oidc.html @@ -55,6 +55,13 @@ +
+ +
+ +
+ +
OpenID Connect Config diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-saml.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-saml.html index 10327e6c5f..3e151fd75d 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-saml.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-saml.html @@ -55,6 +55,13 @@ +
+ +
+ +
+ +
SAML Config diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html index 0a8b56a5c6..809984bcfe 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider-social.html @@ -73,6 +73,13 @@ +
+ +
+ +
+ +
diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html index 1c0ed54a06..778bb2c889 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html @@ -12,7 +12,7 @@ Table of identity providers - +