By: Thomas Zhu user 22 Oct 2014 at 11:48 a.m. CDT

3 Responses
Thomas Zhu gravatar
Login as admin and go to OAuth2 / Clients to add a new client. Display Name: tzhu Client Secret: password Application Type: Web Algorithm: HS256 Pre-Authorization: Trusted Client Redirect Login URLs: https://ce.gluu.info Redirect Logout URLs: https://ce.gluu.info Scopes: openid Response Type: Authorization Code Grant Type Authorized Groups: Gluu Manager Group Click on Add button. See Pre-Authorization error: value is required Change the Pre-Authorization value to Enabled. Click on Add button again. See Client Secret error: /WEB-INF/incl/client/clientForm.xhtml @28,191 value="#{_client.oxAuthClientSecret}": Error writing 'oxAuthClientSecret' on type org.gluu.oxtrust.model.OxAuthClient The exception inside wrapper.log INFO | jvm 1 | 2014/10/22 16:45:46 | Oct 22, 2014 4:45:46 PM javax.faces.webapp.PreJsf2ExceptionHandlerFactory$PreJsf2ExceptionHandler log INFO | jvm 1 | 2014/10/22 16:45:46 | SEVERE: /WEB-INF/incl/client/clientForm.xhtml @28,191 value="#{_client.oxAuthClientSecret}": Error writing 'oxAuthClientSecret' on type org.gluu.oxtrust.model.OxAuthClient INFO | jvm 1 | 2014/10/22 16:45:46 | javax.el.ELException: /WEB-INF/incl/client/clientForm.xhtml @28,191 value="#{_client.oxAuthClientSecret}": Error writing 'oxAuthClientSecret' on type org.gluu.oxtrust.model.OxAuthClient INFO | jvm 1 | 2014/10/22 16:45:46 | at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:139) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIInput.updateModel(UIInput.java:818) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIInput.processUpdates(UIInput.java:735) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIForm.processUpdates(UIForm.java:281) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) INFO | jvm 1 | 2014/10/22 16:45:46 | at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1229) ... INFO | jvm 1 | 2014/10/22 16:45:46 | Caused by: java.lang.NullPointerException INFO | jvm 1 | 2014/10/22 16:45:46 | at org.gluu.oxtrust.model.OxAuthClient.setOxAuthClientSecret(OxAuthClient.java:101) INFO | jvm 1 | 2014/10/22 16:45:46 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2014/10/22 16:45:46 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

By Michael Schwartz Account Admin 22 Oct 2014 at 12:37 p.m. CDT

Michael Schwartz gravatar
Disregard my previous post. Its not a template issue. Is this a new installation? When did you download the Gluu-Server bits?

By Michael Schwartz Account Admin 22 Oct 2014 at 12:39 p.m. CDT

Michael Schwartz gravatar
Also, I'd like to add that there are better client registration forms. Did you see http://seed.gluu.org/oxauth-rp and http://www.gluu.co/php-sample-rp

By Yuriy Movchan staff 05 Nov 2014 at 7:21 a.m. CST

Yuriy Movchan gravatar
Can you update identity.war? In order to do that you should do: 1) Stop tomcat 2) Remove identity.war and identity folder from /opt/tomcat/webapps 3) Download http://ox.gluu.org/maven/org/xdi/oxtrust-server/1.7.0-SNAPSHOT/oxtrust-server-1.7.0-SNAPSHOT.war into /opt/tomcat/webapps as identity.war 4) Start tomcat