-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix #809 JDBC session on same db #898
base: develop
Are you sure you want to change the base?
Fix #809 JDBC session on same db #898
Conversation
INDIGO IAM v1.8.3 release
Release v1.8.3
IAM v1.8.4 release
INDIGO IAM v1.9.0 release
INDIGO IAM v1.10.0 release
IAM release v1.10.1
Hi Donald, thank you for your PR. Also, if you could add few tests (for instance, the ones you have performed manually) it would be great. I guess you can include them in the ExternalizedSessionDeviceCodeTests class. |
Thanks for your comment. I have added the SQL to create the table in both From the database, it looks like the session attributes are byte-encoded, but we can Mock a user login and check if the On the other hand, repeating the test suite with |
Added test to ensure spring session JDBC is working properly |
56cd8b1
to
edcebe1
Compare
f6cb512
to
d405d4b
Compare
d405d4b
to
d555902
Compare
Quality Gate passedIssues Measures |
Fix #809 by adding the JDBC session package. This is the spring default implementation, which uses additional tables on a db to store session data.
Replace #840 as I am unable to identify why the new data source object refuses to limit the amount of connection spawned, will work on it in the future.
Passed all tests on a
mariadb:10.11
container as flyway community don't support older db on my test host.Instruction to use JDBC as session storage
the sample configuration in
application-jdbc-session.yml
details how to activate the flag, how often to clean up the session and the table name etc.If your
table-name
is set toSPRING_SESSION
you will need to make the following 2 tables namedSPRING_SESSION
andSPRING_SESSION_ATTRIBUTES
manually in your IAM database with the following SQL for example after the database is initialized by flyway.You should see the session appearing in those databases as a result.
Thanks