spring-projects / spring-projects/spring-security
SEC-2517: Add easy integration with ajax rest api
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Lukasz Strzelecki (Migrated from SEC-2517) said:
I want in easy way to configure loggin through json api.
I want send & receive application/json Content-Type through http.
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.ajaxLogin()
.loginProcessingUrl("/login")
.successHandler()
.failureHandler()
.usernamePropertyName("username")
.passwordPropertyName("password")
.and()
.logout()
.logoutUrl("/logout")
.logoutSuccessHandler()
.deleteCookies("JSESSIONID")
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the HttpSecurity configuration example and the requested ajaxLogin(), logout(), successHandler(), and failureHandler() entry points. Clarify the intended JSON request and response behavior, handler APIs, and authentication flow before identifying the relevant Spring Security implementation and tests. Done should mean the requested JSON login and logout integration is specified, implemented, and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100