We have a Multi-Tenant Spring Boot application, and now we want to support SSO with Active Directory for one of the tenants. Am not able to find a suitable solution for this. Would be really helpful if I can get suggestions on how or any reference solution for this requirement.
Related
I am looking for saml integration with spring application. I have read some of documents but mostly all are based on spring boot application. Can someone help me to integrate saml in spring application for sso Or suggest the good document guide for the same.
Thanks in advance.
You should be able to take advantage of the Spring Security SAML project:
https://github.com/spring-projects/spring-security-saml
There is a sample project in the repository that demonstrates how one may be able to use the library. It's located here:
https://github.com/spring-projects/spring-security-saml/tree/master/sample
Note that the current official release of this extension builds against OpenSAML v2, and there is a develop branch that is in the process of updating to OpenSAML v3. You are welcome to try and see how that might work for you.
There is also the pac4j project which likewise, allows you build SAML2 SP support into your app and integrate with an identity provider:
http://www.pac4j.org/3.6.x/docs/clients/saml.html
I am working on a Spring batch project which will be running on a Windows machine where I have to use NTLM authentication instead of taking the credentials from property file.
It would be great help If I could get some guidance on how to implement it using Spring.
As you were just looking for guidance on how to implement this in Spring, a contributor on github has a page about this:
Spring Security 3 + Active Directory + NTLMv2
More information concerning the above link, helpful hints from the contributor, and alternative suggestions to this strategy, can be found in this SO thread: Spring 3 and NTLM authentication
I'm trying to find an out-of-the-box health check for my spring app. However, I can only find support for Spring Actuator. I'm not able to use Spring Actuator because my application is a Spring application and not a Spring boot app. Is there another library that I could make use of without having to write my own? I would ideally want an endpoint that could possibly give me data about whether my DB is up and possibly some of the java opts passed into that particular node
I have been trying to learn more about Spring Boot and I would like to add the Actuator endpoints to my test Spring integration/Spring Boot project. However, it is a plain, CLI Spring integration project--there are no current REST or web services. I'd ideally like to add the ability to view the endpoints with a browser while the jar is running from the command line.
I have been looking through the tutorials and I'm not finding a lot on adding it to a regular project, rather than a web project.
I've added the dependencies (spring-boot-actuator), and can see the endpoints from the jconsole, but I never see a connection to a port on my system (using netstat) and never can navigate there.
Is there a tutorial or something that can show me how to have REST endpoints with a CLI project?
Thank you
newbo
You can monitor and manage your application using JMX instead. See the documentation here.
If you use IntelliJ IDEA, hit CTRL+Space in an application.properties file to see a lot of JMX properties ready for you, one of them being:
endpoints.jmx.enabled=true (true is the default value)
According to Spring Docs, in order to show the endpoint user need to have ACTUATOR role.If you need to access without having the role you need to add the following value to application.properties:
management.security.enabled=false
I think if it isn't a web project, no tomcat servlet will be embedded, therefor you wont be able to browse the actuator endpoints over http
Insert dependency spring-boot-starter-web into your project and it will probably work.
I am looking for the best method to host multiple websites developed using Spring Boot.
I have a public IP and it points to EC2 machine.
Already I am running one web application on it, developed using Spring Boot.
Now, I am looking for a way to create my second Spring Boot application(running on a different port).
My configuration should result like this(Single public IP),
www.app1.com(x.x.x.x) => Spring Boot App1
www.app2.com(x.x.x.x) => Spring Boot App2
I found many articles on internet dealing with conf/server.xml file, http://tomcat.apache.org/tomcat-7.0-doc/config/host.html
Can someone help me to achieve the same
The best way is probably to use a reverse proxy front end. E.g. install nginx on your EC2 box, or (probably better if you are serious about it) use an ELB, and Route 53 to register your DNS record.