JAAS authentication in jboss 7 using customloginmodule (DatabaseServerLoginModule) - jboss

I am trying to do authentication in spring mvc application using picketlink with jboss 7.
I have configured web.xml,jboss-web.xml,standalone.xml for custom login module,
picketlink-idfed.xml,picketlink-handlers.xml.
I have my customlogin module which extends Databaseserverloginmodule.
When I try to login I am getting blank page as 404 error and my customlogin module is not called as authentication is not happening.
Am i missing any configuration?
Any help would be appreciated

Related

Configuring Liferay 7.2 OpenID Connect for Keycloak?

I have a fresh Liferay 7.2 and Keycloak 7 install
I created a Keycloak Client for Liferay
I enable Openid Connect in Liferay
In Liferay I configure an OpenID Connect provider with the Keycloak OpenID Connect discovery endpoint
In Liferay
I click Login, Login is presented
I click OpenID Connect, OpenID Connect Login page is presented
I click Login with the Keycloak provider selected, the browser is redirected to the Keycloak log in page
I enter my user and password and Click log in
My browser is redirected back to Liferay
In the Liferay the console looks like this https://gist.github.com/smitopher/ca8bcb2ccb564eff3a42a1944e8daed7
and the browser shows a Liferay Internal Server Error message
Any suggestions?
Some further debugging shows that When Liferay calls the Keycloak token endpoint, Keycloak returns a 400 http status and an invalid grant message.
I ran into the same problem but later stumbled across a blog post showing a successful configuration which I've reproduced with Liferay 7.2 + Keycloak 4.8.
The key difference between the failures and successes appears to be skipping auto-discovery and instead to populate the individual settings directly. It would appear that Liferay doesn't like something in Keycloaks discovery endpoint.
I recommend updating the Keycloak version and checking the correct Liferay configuration by consulting the official Liferay documentation Authenticating with OpenID Connect. You can also consult the article How to connect Keycloak and Liferay via OpenID Connect
Remember that Keycloak and Liferay must be able to communicate with each other via the HTTP / HTTPS protocol.

JBoss EAP 7 management console custom login page

Anyway I can custom Jboss EAP 7 management console login page by adding Log-on Warning Banner in it?
HAL is protected by digest authentication. And as such the browser takes care of the login. Bottom line you won't be able to customize the login.
HAL is the project behind the web console in WildFly: https://hal.github.io/
You can customize it there with extensions (i don't really know the details)

Spring Boot Admin Server redirecting to login.html after successful login

i have a problem setting up a Spring Boot Admin Server. After setting up a project as described here (note that I am using Spring Boot Version 1.5.19 and Spring Boot Admin Version 1.5.7) I can successfully access http://localhost:8000/login.html. The login ui is shown as well. After I type in the username and password the server redirects me to http://localhost:8000/login.html instead of directing me to the homepage. Solutions found in this Question do not work for me.
I have setup a GitHub project that reproduces this behaviour. It can be found following this link.

liferay 7 cas not logined

I'm newbie to liferay 7,I want to integrate liferay 7 with CAS without ldap.
my liferay's version is DXP, CAS server's version is 4.0.0.
I have installed liferay on localhost:8080,CAS server is on one of my server machine over ssl.
I have successfully integrated CAS. After this I have configured CAS authentication in liferay that is in Configuration->Instance Setting->Authentication under this CAS tab.
When I try to login im getting following url:
http://localhost:8080/?ticket=ST-23-d3Dvgf5h56Fa3ptUf5wEc-cas01.example.org
Although ticket is generating,but I'm not able to access admin panel.
Please help, Thanks
I have followed all the instructions in this manual
https://web.liferay.com/web/nidhi.singh/blog/-/blogs/liferay-intregation-with-cas-and-ldap
and everything works perfectly!

Unable to Integrating WSO2 Identity Server with Liferay for Authentication

I am trying to work out Liferay Authentication using wso2 Identity Server, I am using liferay 6.2 and Wso2 IS 5.0.0, I am following above link https://docs.wso2.com/display/IS500/Integrating+WSO2+Identity+Server+with+Liferay Accordingly I have created portal-ext.properties file under liferay_home/tomcat/webapps/ROOT/WEB-INF/classes/portal-ext.properties. and added following properties in it:
auth.pipeline.pre=org.wso2.liferay.is.authenticator.WSO2ISAuthenticator
auth.pipeline.enable.liferay.check=false
but when I run liferay portal and try to log in I am getting java.lang.ClassNotFoundException: org.wso2.liferay.is.authenticator.WSO2ISAuthenticator It should be in org.wso2.liferay.xacml.connector.jar but i am not getting this jar any where I tried to find out this class in other jars but unable to find it, I also tries to google it but no success, Please help me out with this problem, Thanks
You can follow the instructions in http://blog.facilelogin.com/2012/10/integrating-wso2-identity-server-with.html. You can find the missing jars from https://svn.wso2.org/repos/wso2/people/prabath/liferay.