-
Notifications
You must be signed in to change notification settings - Fork 6k
failed to make “max-sessions” field configurable #9202
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
Comments
I suggest to change the type of max-sessions from "xs:integer" to "xs:token" or "xs:string" in http://www.springframework.org/schema/security/spring-security.xsd , so we can configure it dynamically from properties. |
@mazenaissa, thanks for the suggestion. Would you be able to submit a PR to add the feature? You can see an example of resolving placeholders in |
Hello @jzheaux |
Good questions, @mazenaissa, let's see if I can help.
This usually means you don't have permissions. Are you pushing to your fork of the repo?
Since it is a new feature, let's add it to 5.5
You should be able to create the ./gradlew :spring-security-config:rncToXsd |
Thanks for your reply. |
To make a contribution, please follow these steps:
But, 5.0.6 won't resolve placeholders for
To add this support, you should do the following:
|
set max-session to token type and resolve placeholder Closes spring-projectsgh-9202
Hello @jzheaux |
Hello @jzheaux |
Hello @jzheaux |
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 :
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,
The text was updated successfully, but these errors were encountered: