Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
CSRF with Spring and AngularJS
In this blog, We will see how to configure CSRF protection and how to make AngularJS allowed to send information with a CSRF token to the server.
In AngularJS, $http service reads a token from a cookie which is named by default XSRF-TOKEN and se...
CSRF configuration in Spring
In this blog, I am going to explain how to implement Cross-Site Request Forgery protection in Spring. No need to worry to enable CSRF in Spring. Spring Security comes with CSRF enabled. And if required we can disable it as well. Although disablin...
Spring Security 4: Auto login with annotation
Spring security gives us the feature to auto login into the system just after creating an account.
Other way is to register then go to login page, and then login to the system. When we login login mechanism spring automatically creates the sess...
Spring Security:RESTful Authentication via Spring
AuthenticationTokenProcessingFilter
First we need to make security context where we define our Authentication Entry point and a filter for processing the token. Configuration xml will look something like this:
<security:http realm="Authe...
How to invalidate a spring security session?
To invalidate spring security session you need to follow below steps:
1. Add Logout configuration in your applicationContext-security.xml file
Set logout-success-url attribute to /login.jsp. After logout user will be redirected to this pag...
Spring Security multiple entry points
It is possible to create more than one entry point in spring security by assigning the different roles here the code script configuration of springsecurity-context.xml.
springsecurity-context.xml
<beans:beans xmlns="http://www.springfra...