[JBoss Portal] - Custom user authentication
by gsferra@imnet.it
Hello,
can someone help me to understand the authentication mechanism?
I've deployed a custom portal and now I wish to add a login feature using the same authentication method of the UserPortlet but without using it (because I don't want "guests" registers their own accounts).
I wrote a login.jsp and a loginfailure.jsp and I added the following lines to my web.xml:
| <resource-ref>
| <res-ref-name>jdbc/PortalDS</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>Authenticated</web-resource-name>
| <description/>
| <url-pattern>/auth/*</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <description/>
| <role-name>Authenticated</role-name>
| </auth-constraint>
| </security-constraint>
| <security-role>
| <description/>
| <role-name>Authenticated</role-name>
| </security-role>
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>JBoss Portal</realm-name>
| <form-login-config>
| <form-login-page>/jsp/login.jsp</form-login-page>
| <form-error-page>/jsp/loginfailed.jsp</form-error-page>
| </form-login-config>
| </login-config>
|
In the "mycustomportal-object.xml" file I've added a default page with "view" action for "unckecked" users (this shows up a welcome portlet with a login link) and I "restricted" all other pages to "users" and "administrators". The problem is on the login link, where it should point to?
I tried pointing it to:
http://localhost:8080/portal/portal/mycustomportal/auth/
http://localhost:8080/portal/portal/auth/mycustomportal/
http://localhost:8080/portal/auth/portal/mycustomportal/
The last one shows up the "JBoss Portal" standard login page while others doesn't work at all showing up my default portal page. What's wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046851#4046851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046851
18 years, 11 months
[JBoss Seam] - @Factory method get called first..
by m.shinde
Hi,
I am using @Factory method and As the behaviour of @Factory method it is called everytime at first. But my requirement is I first want to add filter into the query object and then retrieve the records. To inject filter parameters I am calling one method setFilters()
|
| @In(required = false)
| @Out(required = false)
| private Article article;
|
| @SuppressWarnings("unchecked")
| @Factory("mainformList")
| public List getMainFormData() {
| ....
| }
|
|
| public String setFilters() {
| return "mainForm.xhtml";
| }
|
When I calll setFilter method by h:commandButton , Instead of setFilter method it is calling @Factory method and then setFilter method..
Which gives me wrong result....
Please suggest where I am doing wrong!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046849#4046849
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046849
18 years, 11 months
[JBoss Messaging] - example queue fails
by tokoma1
Hi,
I have configured jboss-messaging-1.0.1.SP5 on jboss-4.2.0.RC2 and tried to run example/queue. However, the example fails with the following log messages on JBoss server.
23:22:42,810 ERROR [STDERR] java.lang.Exception
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:130)
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:120)
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:97)
23:22:42,810 ERROR [STDERR] at org.jboss.jms.server.remoting.JMSWireFormat.read(JMSWireFormat.java:422)
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.versionedRead(ServerThread.java:648)
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:526)
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:365)
23:22:42,810 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:161)
Plase let me know the resolution.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046841#4046841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046841
18 years, 11 months