Spring Boot Admin Server redirecting to login.html after successful login - spring-boot-admin

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.

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.

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!

Grails Spring Security Facebook Plugin not Working

I am trying to use spring security facebook plugin in grails. Here is my configuaration
BuildConfig.groovy:
compile ":spring-security-core:2.0-RC2"
compile ":spring-security-facebook:0.15.2-CORE2"
Config.groovy:
grails.plugins.springsecurity.facebook.domain.classname='com.spring.grails.loginapp.domains.auth.FacebookUser'
grails.plugins.springsecurity.facebook.appId='711430758877160'
grails.plugins.springsecurity.facebook.secret= *****
grails.plugins.springsecurity.facebook.autoCreate.enabled=true
grails.plugins.springsecurity.facebook.autoCreate.roles=['ROLE_USER', 'ROLE_FACEBOOK']
I created domin using s2-init-facebook. I created Login with facebook in my GSP.
But When I try to click Login With Facebook, I got Invalid app id error.
Invalid App ID: Invalid
When I go to http://graph.facebook.com/645351175512630 to verify my App it seems to be correct.
I Followed documentation of grails spring security facebook plugin.
First of all, you have to put configuration into Config.groovy. BuildConfig is used for dependencies.
Second, as you're using Spring Security Core version 2.x, then correct config prefix is grails.plugin.springsecurity (not grails.plugins.springsecurity, without s)

JAAS authentication in jboss 7 using customloginmodule (DatabaseServerLoginModule)

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

Administration console of OpenAM cannot be reached

I have trouble reaching the Administration console of the OpenAM server for a second time after a restart of the JBoss applicationserver on Windows 2008 Server R2 Datacenter.
I deploy OpenAM 9.5.2 (the opensso.war file) in the JBoss-4.2.3GA 'deploy' folder of its default profile.
I point my Internet Explorer 8 browser to: my.test.domain.com:8080/opensso
The page appears to create a Default or Custom Configuration for the OpenAM server
I successfully complete the wizard for creating a Custom Configuration
A pop-up with a 'Proceed to login' link appears after completing the configuration
I click this link and I can access the Admin console
Here is the thing:
When I restart JBoss and try to browse to the Admin console URL manually for a second time:
http://my.test.domain.com:8080/opensso/console
It will instead go to the page again to create a Default or Custom Configuration:
http://my.test.domain.com:8080/opensso/config/options.htm
And therefore I cannot access the Admin console anymore.
Note:
I verified that the URL: my.test.domain.com:8080/opensso/console is correct by opening
a second tab in IE8 before the restart of JBoss.
Been looking at doing this myself - this may provide the solution
https://wikis.forgerock.org/confluence/display/openam/Considerations+when+deploying+on+JBoss+AS+5.1
Indeed that will work. I discovered that you can alternatively add in your run.bat of JBoss:
-Dcom.sun.identity.configuration.directory= your configuration directory