Skip to content

Use Kotlin DSL Marker Annotations to prevent scope leaking #7971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eleftherias opened this issue Feb 10, 2020 · 0 comments
Closed

Use Kotlin DSL Marker Annotations to prevent scope leaking #7971

eleftherias opened this issue Feb 10, 2020 · 0 comments
Assignees
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Milestone

Comments

@eleftherias
Copy link
Contributor

Summary

Currently, in the Kotlin DSL, function autocompletion is not limited to their specific scope.
This leads to configurations like the one below, which should not be allowed.

http {
    authorizeRequests {
        authorizeRequests {
        }
    }
}

This issue is migrated from spring-attic/spring-security-kotlin-dsl#19.

@eleftherias eleftherias added in: config An issue in spring-security-config type: enhancement A general enhancement labels Feb 10, 2020
@eleftherias eleftherias self-assigned this Feb 10, 2020
@eleftherias eleftherias changed the title Use Kotlin DSL Marker Annotations to scope leaking Use Kotlin DSL Marker Annotations to prevent scope leaking Feb 11, 2020
@eleftherias eleftherias added this to the 5.3.0 milestone Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant