spring-projects / spring-projects/spring-security
Kotlin DSL loginPage usage
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Missing Kotlin DSL property for loginPage in oneTimeTokenLogin
Title: Kotlin DSL: Missing loginPage property in oneTimeTokenLogin configurer
Description:
Current Behavior
When configuring One-Time Token (OTT) login using the Spring Security Kotlin DSL, the loginPage property is not directly available as a property assignment (e.g., loginPage = "/login"). Instead, developers must use the it lambda parameter to call the Java-style setter method on the underlying OneTimeTokenLoginConfigurer:
// Current workaround
http.oneTimeTokenLogin {
it.loginPage("/login")
it.tokenGenerationSuccessHandler(myHandler)
}
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 at the Kotlin DSL oneTimeTokenLogin entry point and the underlying OneTimeTokenLoginConfigurer named in the issue. Compare the existing loginPage configuration with tokenGenerationSuccessHandler, then add coverage for loginPage = "/login". Done means the property assignment configures the same login page as it.loginPage("/login").
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin, spring
- Domain
- authentication, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 70/100