Skip to content

failed to make “max-sessions” field configurable #9202

Closed
@mazenaissa

Description

@mazenaissa

Hello,
I am using spring-security 5.0.6 and I want to make max-sessions field configurable from a properties file
So I did this :

<security:session-management>
    <security:concurrency-control max-sessions="${security.maxSessions}" session-registry-ref="sessionRegistry""/>
</security:session-management>

But i get this error :
Multiple annotations found at this line:
- cvc-datatype-valid.1.2.1: '${security.maxSessions}' is not a valid value for 'integer'.
- cvc-attribute.3: The value '${security.maxSessions}' of attribute 'max-sessions' on element 'security:concurrency-control' is not valid with respect to its type, 'integer'.

Is there any solution to make it configurable ?
Thanks,

Metadata

Metadata

Labels

in: configAn issue in spring-security-configtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions