Is it possible to authenticate desktop application written in swing using existing spring security configuration (I have all the classes SecurityConfig.java, UserDetailsService.java, SecurityWebAppInitializer.java and they are tested) and it works properly with web application?
I need to authenticate with backend (spring) somehow from the swing application.
I know a way how to achieve something like this using JDBC and fetching the credentials direct from the database.
If it is not possible what else can I do in order to get this done?
Thank you!
Related
I need to make a SOAP webservice and a web client. I have been trying for several days to implement and configure spring security on the ws to control authentication with a database but without success.
I use spring boot 2.2 with spring security.
I would like the user to authenticate only on certain actions and from a database and not by putting the password in hard.
Could you explain me how works spring security with soap ? I didn't find good and simple explanation.
Thanks for your help
I'am develop a desktop application using java swings.
I want the authentication to be as secure as possible so please suggest the measures i should be taking to do so
also i want to implement role based authorization such that people with specific roles have access to specific modules of softwares
I've looked for various frameworks like JAAS,Springs, apache shiro but i'am not able to map the idea to a desktop application since most of the tutorials and source available are for web application.
Popup in an application to authenticate the user
I need to develop an application and authenticate users who login to the application. I need to trigger a popup like this (image attached) and configure to xxx server for validation.
I need to develop the application in JSP,Spring MVC with hibernate.
Right now I'm running the application in localhost.
This looks like Basic Authentication. It can be enabled in the web.xml configuration file. The dialog will be presented by the browser so its look and feel is controlled by the client side.
For Spring, check if this helps:
Spring security with Hibernate and Annotations and basic HTTP authentication
I developed two application. One application developed by using Java(Spring MVC and Spring Security) and another application developed by using NodeJs.
I would like to integrate NodeJs application in Java application(Spring framwork application) . I would like to access(Call) the NodeJs application after login into Java application.
I checked in forum but I am not get in clear view.
E.g) My situation is, I have one hyperlink in Java (Hyperlink will show after login) and call NodeJs application if user click on that hyperlink.
Can you please give the some examples and ideas for integrating NodeJs and Java applicaton and also for sharing session between Java and NodeJs application?
You can just put your web apps behind proxy server to avoid the CORS problem and for sharing the session you would use Redis DB.
After it you will need just to check session expiration on your NodeJs app.
I am making web application in java. My username and passwords as well as roles are stored in database. I could use jdbcRealm, but it forces me to use a specific structure which i dont have in my project. So, how do i do it? I am using Glassfish v3.0 with Netbeans 6.8. I read few tutorials about custom LoginModule but i am not getting anything out of it. How do you all people do it practically in your projects? If you can show me code of custom LoginModule then also it will do.
Waiting for replies.
Spring Security is what you're looking for.