Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.2 Override CASFilter
Hello,
I'm a Liferay 7.2 CE newbie and I need to customize the CASFilter to put in session some custom attributes that CAS send in the serviceValidation phase.
I also need to customize the CASAutoLogin component to import users automatically when the preceding custom attributes match particular values.
Is there any tutorial I can follow to do this or can you help me telling me how to do it?
Thanks in advance.
I'm a Liferay 7.2 CE newbie and I need to customize the CASFilter to put in session some custom attributes that CAS send in the serviceValidation phase.
I also need to customize the CASAutoLogin component to import users automatically when the preceding custom attributes match particular values.
Is there any tutorial I can follow to do this or can you help me telling me how to do it?
Thanks in advance.
Hi,
May be below links can help you
https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/auto-login
https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/servlet-filters
https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/portal-security-sso/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/servlet/filter/CASFilter.java
https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/portal-security-sso/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/auto/login/CASAutoLogin.java
May be below links can help you
https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/auto-login
https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/servlet-filters
https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/portal-security-sso/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/servlet/filter/CASFilter.java
https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/portal-security-sso/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/auto/login/CASAutoLogin.java
Hi, thank you for your reply!
Do you know which kind of project I have to create in my Liferay workspace to build a servlet-filter hook and which one for an AutoLogin component? Furthermore, how can I deploy and debug them? (I'm using Eclipse with the Liferay's plugin as IDE)
Thank you very much.
Do you know which kind of project I have to create in my Liferay workspace to build a servlet-filter hook and which one for an AutoLogin component? Furthermore, how can I deploy and debug them? (I'm using Eclipse with the Liferay's plugin as IDE)
Thank you very much.
Krzysztof Gołębiowski, modified 5 Years ago.
Liferay Master
Posts: 549
Join Date: 6/25/11
Recent Posts
I know it's a bit old post, but I recently published a small blog about overriding CASFilter. I hope it will help people that come here in the future.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™