Featured post

Docker setup for Liferay 7 with MySQL

Monday, 11 September 2017

Auto Login Liferay 7 \ Lliferay DXP

Auto Login : Auto login is a feature that allows you to login automatically!

Few of available Auto Login types in Liferay 7 \ Liferay DXP :

  • Basic Authentication
  • Request Header
  • Parameter
  • Remember Me

Basic Authentication Header Auto Login
    To know about basic authentication, please follow this link.

Basic authentication[username + password] can be passed in headers for auto login.
Create a config file named  "com.liferay.portal.security.auto.login.basic.auth.header.module.configuration.BasicAuthHeaderAutoLoginConfiguration.cfg".


To deploy, copy corresponding [.cfg] \ config file to osgi/config or osgi/modules folder.
You can test it through postman like utilities!

Request Header Auto Login

    It requires screen name in request header, header key name would be - "LIFERAY_SCREEN_NAME"
Config file >  "com.liferay.portal.security.auto.login.request.header.module.configuration.RequestHeaderAutoLoginConfiguration.cfg".

We need to make host entries of valid IP's.

You can also enable ldap import feature from this file!

Test it in similar manner as Basic Authentucation Auto Login.

Request Parameter Auto Login

    For parameter auto login, append these parameters in URL

If you use
"/c/portal/login?parameterAutoLoginLogin=test@liferay.com&parameterAutoLoginPassword=test "
 then it will redirect you to default landing page as well.

Config file >  "com.liferay.portal.security.auto.login.request.parameter.module.configuration.RequestParameterAutoLoginConfiguration.cfg".


To create custom AutoLogin : https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/auto-login#creating-an-auto-login-component

You can also enable\disable\update auto login settings from control panel > Configuration > System Settings > Foundation > [search login]

Note: If you’re running Liferay DE 7.0 Fix Pack 7 or earlier, or Liferay CE Portal 7.0 GA3 or earlier, System Settings exports a .cfg file instead of a .config file. The file format was changed to fix a bug with multi-value settings, which the .cfg format didn’t handle properly. See the bug report for more information. Any Liferay Portal system newer than those listed in this note uses the .config file format.

You are just done, Try & Enjoy the function.............:)


  1. I read the post and I have really enjoyed your blogs posts.looking for the next post.
    Digital Marketing Training In Bangalore.

  2. quite informative, thanks for sharing with us

    if you are interested in reading my blogs
    - http://www.learndigital.co

  3. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

  4. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.  Matrix Auto Inc

  5. nice post, You cann't imagine
    just how so much time I had spent for this info!

  6. While this may seem counter intuitive to old school car guys who presume that they must sell themselves before they can sell their vehicles, it is in keeping with equally established wisdom that suggest that automotive advertising doesn't sell cars it just attracts customers who want to buy one. pagalba kelyje

  7. Intriguing post. I Have Been pondering about this issue, so much obliged for posting. Really cool post.It "s truly extremely pleasant and Useful post.Thanks auto hail repair denver

  8. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. auto repair Manalapan NJ

  9. Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. paintless dent repair

  10. Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
    Digital Marketing Course In Kolkata
    Web Design Course In Kolkata

  11. while there has become a lot of advancements for the means of treating mental Disorders with the past 50 years, there is certainly still the certain stigma surrounding ones views at mental illness keep it up
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

  12. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... https://sites.google.com/site/hotmailloginonline/

  13. You have beaten yourself this time, and I appreciate you and hopping for some more informative posts in future. Thank you for sharing great information to us. https://aplicativostop.com.br/hotmail-entrar/

  14. I think that thanks for the valuabe information and insights you have so provided here. https://autopartsgh.com/

  15. Great Article Cloud Computing Projects

    Networking Projects

    Final Year Projects for CSE

    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

  16. Moreover the protection charges you are cited for fresher cars is significantly higher than a car which is a couple of years more seasoned. best auto mechanics in Bolton

  17. A straightforward login content comprises of the accompanying parts. hotmail login

  18. Owning and driving your own vehicle is cool and awesome yet it involves a lot of responsibility as well. For instance, the car needs to be maintained properly so that damages are prevented; and if ever there are Free Wireless Credit Card Machine needed the car owner should know which he or she can perform and which are meant for auto mechanics to do.

  19. An interesting discussion is worth comment. I believe that you ought to write regarding this topic, it might not be a taboo subject but generally persons are too few to chat on such topics. To another location. Cheers Mega888

  20. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. czesci samochodowe szczecin

  21. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Stroudsburg Buy Tires

  22. On the off chance that you need to analyze auto protection rates, it will take more than basically flipping through the business index and picking a couple of names indiscriminately. dealer ops

  23. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! commercial truck part