From 0ffe1cb3545a8e0ebd15c7d05324e4bf4d1d4faa Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 14 Aug 2013 12:30:16 +0100 Subject: [PATCH] Renamed sdk-html for forms and added registration form --- examples/as7-eap-demo/server/pom.xml | 2 +- .../main/webapp/saas/admin/partials/menu.html | 4 +- .../src/main/webapp/saas/saas-register.jsp | 88 ------------ {sdk-html => forms}/pom.xml | 4 +- .../main/java/org/keycloak/sdk/FormsBean.java | 70 ++++++++-- .../META-INF/resources/faces-config.xml | 0 .../META-INF/resources/sdk/login.xhtml | 2 +- .../META-INF/resources/sdk/register.xhtml | 2 +- .../resources/sdk/theme/default/css/base.css | 0 .../resources/sdk/theme/default/css/forms.css | 0 .../theme/default/css/img/btn-social-fb.svg | 0 .../css/img/customer-login-screen-bg.jpg | Bin .../css/img/customer-login-screen-bg.svg | 0 .../css/img/feedback-error-arrow-down.png | Bin .../css/img/feedback-error-arrow-down.svg | 0 .../default/css/img/feedback-error-sign.png | Bin .../default/css/img/feedback-error-sign.svg | 0 .../css/img/login-register-separator.svg | 0 .../css/img/login-register-separators.png | Bin .../img/login-register-social-separators.png | Bin .../img/login-register-social-separators.svg | 0 .../default/css/img/register-login-bg.png | Bin .../sdk/theme/default/css/login-register.css | 0 .../resources/sdk/theme/default/css/reset.css | 0 .../css/zocial/zocial-regular-webfont.eot | Bin .../css/zocial/zocial-regular-webfont.svg | 0 .../css/zocial/zocial-regular-webfont.ttf | Bin .../css/zocial/zocial-regular-webfont.woff | Bin .../sdk/theme/default/css/zocial/zocial.css | 0 .../sdk/theme/default/css/zocial/zocial.less | 0 .../default/img/customer-login-screen-bg2.jpg | Bin .../default/img/login-screen-background.jpg | Bin .../sdk/theme/default/img/red-hat-logo.png | Bin .../resources/sdk/theme/default/login.xhtml | 19 +-- .../sdk/theme/default/register.xhtml | 23 ++-- .../resources/sdk/theme/default/styles.css | 0 .../sdk/theme/default/template.xhtml | 37 ++--- .../main/resources/META-INF/web-fragment.xml | 0 pom.xml | 2 +- .../services/resources/OAuthUtil.java | 17 ++- .../keycloak/services/resources/Pages.java | 8 ++ .../services/resources/SaasService.java | 129 +++++++++++++----- .../services/resources/TokenService.java | 6 +- .../org/keycloak/services/resources/Urls.java | 45 ++++++ 44 files changed, 277 insertions(+), 181 deletions(-) delete mode 100755 examples/as7-eap-demo/server/src/main/webapp/saas/saas-register.jsp rename {sdk-html => forms}/pom.xml (90%) rename sdk-html/src/main/java/org/keycloak/sdk/LoginBean.java => forms/src/main/java/org/keycloak/sdk/FormsBean.java (79%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/faces-config.xml (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/login.xhtml (85%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/register.xhtml (83%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/base.css (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/forms.css (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/btn-social-fb.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/customer-login-screen-bg.jpg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/customer-login-screen-bg.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/feedback-error-arrow-down.png (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/feedback-error-arrow-down.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/feedback-error-sign.png (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/feedback-error-sign.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/login-register-separator.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/login-register-separators.png (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/login-register-social-separators.png (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/login-register-social-separators.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/img/register-login-bg.png (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/login-register.css (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/reset.css (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/zocial/zocial-regular-webfont.eot (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/zocial/zocial-regular-webfont.svg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/zocial/zocial-regular-webfont.ttf (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/zocial/zocial-regular-webfont.woff (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/zocial/zocial.css (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/css/zocial/zocial.less (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/img/customer-login-screen-bg2.jpg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/img/login-screen-background.jpg (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/img/red-hat-logo.png (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/login.xhtml (54%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/register.xhtml (56%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/styles.css (100%) rename {sdk-html => forms}/src/main/resources/META-INF/resources/sdk/theme/default/template.xhtml (58%) rename {sdk-html => forms}/src/main/resources/META-INF/web-fragment.xml (100%) create mode 100644 services/src/main/java/org/keycloak/services/resources/Pages.java create mode 100644 services/src/main/java/org/keycloak/services/resources/Urls.java diff --git a/examples/as7-eap-demo/server/pom.xml b/examples/as7-eap-demo/server/pom.xml index 5cfb75b9b3..a0b7c26e2f 100755 --- a/examples/as7-eap-demo/server/pom.xml +++ b/examples/as7-eap-demo/server/pom.xml @@ -52,7 +52,7 @@ org.keycloak - keycloak-sdk-html + keycloak-forms ${project.version} diff --git a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html index e10cd0cd37..21c473373a 100755 --- a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html +++ b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html @@ -12,8 +12,8 @@