Skip to content

Kotlin DSL loginPage usage #19249

@goransipic

Description

@goransipic

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)
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions