Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Puneet Upadhyay
Custom Login
12 de diciembre de 2011 23:36
Respuesta

Puneet Upadhyay

Ranking: Regular Member

Mensajes: 234

Fecha de incorporación: 22 de octubre de 2011

Mensajes recientes

Hi All,

I wanna logged in with my credentials with my landing page and my log in portlet, without using liferay's log in portlet.
Please let me know what procedure i need to follow ???
Puneet Upadhyay
RE: Custom Login
13 de diciembre de 2011 3:24
Respuesta

Puneet Upadhyay

Ranking: Regular Member

Mensajes: 234

Fecha de incorporación: 22 de octubre de 2011

Mensajes recientes

Any Help???
Raja Seth
RE: Custom Login
13 de diciembre de 2011 3:56
Respuesta

Raja Seth

Ranking: Regular Member

Mensajes: 154

Fecha de incorporación: 18 de agosto de 2011

Mensajes recientes

Hi Puneet,

In the portal_normal.vm, there is...

#if(!$is_signed_in)
<a href="$sign_in_url" id="sign-in" rel="nofollow">$sign_in_text</a>
#end

you can modify it to use your own sign-in portlet. Also u can set your "landing page" you can refer to this link
Milen Dyankov
RE: Custom Login
13 de diciembre de 2011 8:30
Respuesta

Milen Dyankov

Ranking: Regular Member

Mensajes: 173

Fecha de incorporación: 23 de septiembre de 2009

Mensajes recientes

You can create a login page and place your own login portlet in it. To display it when login is required, configure the page and portlet name in portal-ext.properties. Here is what is in the original portal.properties file :
 1  #
 2 # Enter a friendly URL of a page that will be used to login portal users
 3 # whenever the user is navigating a community and authentication is needed.
 4 # By default, the portal's login page or the URL set in the property
 5 # "auth.login.url" is used.
 6 #
 7 auth.login.community.url=/login
 8
 9 #
10 # Enter the name of the login portlet used in a page identified by the URL
11 # of the previous property (if one has been set). This will allow the
12 # portlet to have access to the redirect parameter and thus forward the user
13 # to the page where he was trying to access when necessary. You should leave
14 # the default value unless you have your own custom login portlet
15 #
16 auth.login.portlet.name=58


You may also need to add your own auto login hook:

 1   #
 2   # Input a list of comma delimited class names that implement
 3    # com.liferay.portal.security.auth.AutoLogin. These classes will run in
 4    # consecutive order for all unauthenticated users until one of them return a
 5    # valid user id and password combination. If no valid combination is
 6    # returned, then the request continues to process normally. If a valid
 7    # combination is returned, then the portal will automatically login that
 8    # user with the returned user id and password combination.
 9    #
10    # For example, com.liferay.portal.security.auth.RememberMeAutoLogin reads
11    # from a cookie to automatically log in a user who previously logged in
12    # while checking on the "Remember Me" box.
13    #
14    # This interface allows deployers to easily configure the portal to work
15    # with other SSO servers. See com.liferay.portal.security.auth.CASAutoLogin
16    # for an example of how to configure the portal with Yale's SSO server.
17    #
18    auto.login.hooks=com.liferay.portal.security.auth.CASAutoLogin,com.liferay.portal.security.auth.FacebookAutoLogin,com.liferay.portal.security.auth.NtlmAutoLogin,com.liferay.portal.security.auth.OpenIdAutoLogin,com.liferay.portal.security.auth.OpenSSOAutoLogin,com.liferay.portal.security.auth.RememberMeAutoLogin,com.liferay.portal.security.auth.SiteMinderAutoLogin