I added spring security to my spring application , added jars are spring security config,spring security security web and spring security core, still it is showing ' enable web security' annotation as cannot be resolved as a type.
i used web.xml, applicationcontext.xml, and annotations. Now i added a new class which contains spring security annotations.
This is because of spring security config jar 3.0 release , i updated to 3.2 then it is working .
Related
I am trying to upgrade my existing grails application from version 2.5.6 to 3.3.11.
So far, container managed application was configured in the application via web.xml, with <login-config>. Here is the configuration:
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login/login</form-login-page>
<form-error-page>/login/login_error</form-error-page>
</form-login-config>
</login-config>
As grails 3 has stopped supporting web.xml file, I am wondering how to maintain Container Managed Authentication. The reason for using Container Managed Authentication (CMA) is that our application doesn't want to handle the authentication process, as different customers have different authentication mechanisms at their end. So we prefer CMA.
Have read many online forums, they all end up with Spring Security plugin. But didn't find a configuration with Spring Security which gives control of authentication to the container.
So, how to configure CMA with Grails 3?
I have a Spring JWT Project and Spring Rest Services which are deployed separately. I have to do authentication and authorization stuff by calling Spring JWT Service. I'm new to this though but I have good understanding. Any one having idea how to achieve this.
Note:
Spring 4.x, Spring Security 4.x and Hibernate 5.x with Java based configuration
I have been developing a web app using Spring Boot and Spring Security among other things.
Everything was working well till I integrated with JavaMelody. Now, every REST API call annotated with #PreAuthorize is giving a HTTP status 404.
How can I configure JavaMelody for working with Spring Security? I followed the official guide to integrate JavaMelody in a Spring Boot app (https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced#spring-boot-app) and so JavaMelody is working, but... I did not find any info about my situation.
Updated Spring Boot to 1.4.1 and now it is working.
I have Spring Boot beased web application using Spring Security 4.0.2 for authentication. My app deployed to WebLogic 12c with configured security realm.
I want to configure Spring Security authorization through WebLogic security realm.
I tried finding in net but unable to get any working and actual samples which explains the Weblogic/Spring-Sec working together.
I need Spring Security java configuration sample for WebLogic security realm.
Can anyone help me with this issue?
I recently developed a Grails application which uses Spring LDAP and Spring Security for authentication using LDAP. Its working great. But now I am trying to make it work with WebSphere 8.5 Application global security settings.
I have configured WebSphere Global Security with LDAP information and test connection and login works with LDAP users. But now I want to integrate the same with Grails.
I tried few options but it's not really going anywhere and did not find much information online.