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".


enabled=true


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.

enabled=true
authHostsAllowed=127.0.0.1,SERVER_IP
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
"?parameterAutoLoginLogin=test@liferay.com&parameterAutoLoginPassword=test"

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".

enabled=true


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.............:)

73 comments:

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

    ReplyDelete
  2. quite informative, thanks for sharing with us

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

    ReplyDelete
  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.

    ReplyDelete
  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

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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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/

    ReplyDelete
  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/

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

    ReplyDelete
  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

    ReplyDelete
  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

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

    ReplyDelete
  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.

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  24. You bear through a awesome vacancy. I sanity definitely quarry it moreover personally suggest to my buddys. I am self-possessed they determination be benefited from this scene. 2020 Keystone RV Fuzion 410

    ReplyDelete
  25. Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore. I will instantly grab your rss feed to stay informed of any updates. 2021 Winnebago Micro Minnie 2306BHS

    ReplyDelete
  26. Hey there! I know this is kind of off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having trouble finding one? Thanks a lot!
    cash for cars brisbane
    cash for cars logan
    cash for cars caboolture

    ReplyDelete
  27. The tutorial is very helpful for a first timer like me, by the way if you could have given a tutorial on creating a free website, it would have been very helpful for newbies like me.
    Thank you
    cash for cars adelaide
    cash For cars Nambour
    car recycling Adelaide

    ReplyDelete
  28. Simply want to say your article is as surprising. The clearness in your post is simply great and i could assume you are an expert on this subject. Well with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.
    cash for cars gold coast
    Cash for Cars Burleigh Heads
    Cash for Cars Elanora

    ReplyDelete
  29. Wow, that was strange. I just wrote a really long comment but after I clicked submit my comment didn't show up. Grrrr... well, I'm not writing all that over again. Anyways, just wanted to say fantastic blog!
    cash for cars brisbane
    cash for cars gold coast
    cash for cars sydney

    ReplyDelete
  30. It’s actually a great and also handy section of details. I am just fulfilled that you simply contributed this helpful info along with us.. Be sure to keep us knowledgeable similar to this. Thank you for expressing.
    sell my car brisbane
    cash for scrap cars brisbane
    cash for cars brisbane

    ReplyDelete
  31. Great remarkable issues here. I’m very glad to look your article. Thanks a lot and I am having a look forward to touch you. Will you please drop me a mail?
    cash for cars caboolture
    cash for cars brisbane
    cash for cars ipswich

    ReplyDelete
  32. Some intensely financed sports vehicles have must be returned, regularly with genuine monetary ramifications for the proprietors, in light of startling pregnancies! Autance

    ReplyDelete
  33. I have read your excellent post. This is a great job. I have enjoyed reading your post first time. buy hydrocodone online 

    ReplyDelete
  34. Wonderful blog post. This is absolute magic from you! buy adderall 30mg online 

    ReplyDelete
  35. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, buy dmt

    ReplyDelete
  36. Great post. I used to be checking constantly this weblog and I am inspired! cocaine for sale

    ReplyDelete
  37. Extremely useful information specially the ultimate part :) I maintain such info much. buy meth online

    ReplyDelete
  38. Auto way too high on that list, anything man made does not compare to what we have been given. Check Minivan Cars

    ReplyDelete
  39. Traditionally in Spanish bullfight, bulls that manage to defeat a matador are given life, and their names are forever inscribed in the history of the sport. Ferruccio Lamborghini was convinced, that a name of a fighting bull will emphasize the untamed nature of sports cars created under Lamborghini marque. By the way, Ferruccio Lamborghini himself was also a bull in a sense, since his zodiac sign was Taurus. (He was born on April 28, 1916). Lamborghini Rental

    ReplyDelete
  40. Fascinating blog! Is your theme custom made or did you download it from somewhere?A theme like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. With thanks
    Ve may bay Vietjet tu Dai Loan ve Viet Nam

    combo nghỉ dưỡng quy nhơn

    combo đà lạt 4 ngày 3 đêm

    Combo khách sạn vinpearl nha trang

    combo đi phú quốc 4 ngày 3 đêm

    combo đà nẵng tháng 8

    ReplyDelete
  41. I can’t imagine focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material. This is great content. https://officialbopkingdlow.com/

    ReplyDelete
  42. If you have insufficient storage space in your warehouse, using pallet racking systems can greatly increase your current storage space. Check out some of the types of this system now so you can decide which type to go for. plastic pallets

    ReplyDelete
  43. 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. here

    ReplyDelete
  44. An impressive share, I just now given this onto a colleague who had been performing a little analysis with this. And the man the fact is bought me breakfast because I came across it for him.. smile. So permit me to reword that: Thnx for that treat! But yeah Thnkx for spending enough time to debate this, I find myself strongly regarding this and enjoy reading read more about this topic. When possible, as you become expertise, could you mind updating your blog site with more details? It truly is extremely a good choice for me. Large thumb up in this post! 카지노사이트

    ReplyDelete
  45. There are so many places that you can't cover all of them if you don't have your own conveyance. If you are a tourist, it is better to go for car rentals in Orlando. Luxury Car Rental Orlando

    ReplyDelete
  46. Thankyou for this wondrous post, I am glad I observed this website on yahoo. 토토커뮤니티

    ReplyDelete
  47. Good day! Do you know if they make any plugins to protect against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any tips? buy hgh

    ReplyDelete
  48. nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! 안전놀이터

    ReplyDelete
  49. An interesting discussion may be valued at comment. I do believe that you ought to write on this topic, may well certainly be a taboo subject but usually individuals are not enough to communicate on such topics. To a higher. Cheers hgh for sale

    ReplyDelete
  50. Good post. I learn something tougher on different blogs everyday. It'll at all times be stimulating to learn content from other writers and observe somewhat one thing from their store. I’d choose to use some with the content on my blog whether or not you don’t mind. Natually I’ll offer you a link in your internet blog. Thanks for sharing. clenbuterol for sale

    ReplyDelete
  51. Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. 먹튀검증

    ReplyDelete
  52. "Right now, places say to cover your face but they don't say what type of face covering," she said. "If schools and workplaces and other indoor public spaces are going to mandate masks, they should be working to mandate surgical masks."
    https://www.yert200.com

    ReplyDelete
  53. Ajay Sethi, an epidemiologist and associate professor of population health sciences at the University of Wisconsin-Madison, who was not involved with the study, called the research "thoughtfully put together" and "impressive on many different levels."
    https://www.shine900.com

    ReplyDelete
  54. He added that the project demonstrated that strategies can be effectively implemented in communities to change mask behavior. In the U.S., public health officials have struggled to promote their usage after masks were politicized early in the pandemic.
    https://www.gain777.com

    ReplyDelete
  55. "Normative behavior is what needs to be targeted," Sethi said. "It’s not just mask use that needs to be adopted, it’s also an understanding of why masks need to be used and reinforcement that the virus is serious."
    https://www.kkr789.com

    ReplyDelete
  56. Kwong and her colleagues are now expanding their research to include other villages and cities in Asia and sub-Saharan Africa. The researchers also intend to track the effect of masks on asymptomatic transmission.
    https://www.aace777.com

    ReplyDelete
  57. Dr. Isaac Bogoch, an infectious diseases physician and associate professor of medicine at the University of Toronto, said the research helps reinforce what was known about the effectiveness of masks, but he stressed that people should see them as just one of multiple interventions needed to stop the spread of Covid.
    https://www.qqueen700.com

    ReplyDelete
  58. Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. 대전1인샵

    ReplyDelete
  59. That is really nice to hear. thank you for the update and good luck. 대전1인샵

    ReplyDelete
  60. I really like your writing style, great information, thankyou for posting. test bank nursing

    ReplyDelete
  61. This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. 먹튀검증

    ReplyDelete