Repository navigation
Add option to save access tokens on database or not - #1165
Merged
Merged
Conversation
enricovianello
force-pushed
the
token-opt
branch
3 times, most recently
from
February 16, 2026 13:59
9dbb892 to
3330123
Compare
Contributor
|
Even if |
Contributor
This is related to issue #1158. |
enricovianello
force-pushed
the
token-opt
branch
3 times, most recently
from
March 2, 2026 16:57
13c8964 to
90dc6b2
Compare
enricovianello
force-pushed
the
token-opt
branch
from
March 3, 2026 15:40
66c4793 to
0d5d067
Compare
Add workflow for tokens not stored in db
Use clock everywhere
enricovianello
force-pushed
the
token-opt
branch
from
March 19, 2026 16:45
4220a9a to
a16c8e1
Compare
- Add SCIM tests with token not in database - Add more introspection tests - Improve coverage of TokenUtils validation
enricovianello
force-pushed
the
token-opt
branch
from
March 20, 2026 17:23
e54bdaa to
66c76c5
Compare
Run it only if build workflow ends successfully
during token exchange
|
garaimanoj
pushed a commit
that referenced
this pull request
Mar 31, 2026
* Add GitHub workflow to run tests with the option of not store access tokens in db turned on * Add ShedLock logic on internal IAM Garbage Collector * Use clock everywhere (services and tests) * Move to a default system UTC clock * Small GitHub actions refactoring
garaimanoj
pushed a commit
that referenced
this pull request
Apr 22, 2026
* Add GitHub workflow to run tests with the option of not store access tokens in db turned on * Add ShedLock logic on internal IAM Garbage Collector * Use clock everywhere (services and tests) * Move to a default system UTC clock * Small GitHub actions refactoring
This was referenced May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR introduces the feature of not storing access tokens on database. The feature has been added as a configurable option:
Default value is
falseto preserve the original behavior of storing access token on database and let administrators to turn it on. The refresh-tokens are not affected by this changes and are still persisted on databaseThe effects of this feature turned on are:
This PR also includes a relevant change on codebase related to the usage of a Clock inside both services and unit tests. All the
new Date()and similar have been migrated. This allowed an enhancement about testing token expired behaviors.This PR introduces the setting of UTC as the timezone used to connect to database and store data. Conversions to the local time zone is done through the database connector.
This PR also introduces the ShedLock logic to manage concurrency on deleting entries from database (during garbage collector operations).
This PR changes the response got during Token Exchange when an expired/malformed subject token is used: the error has been changed, aligning it to the specification, from
invalid_tokentoinvalid_grantand HTTP code has become 400 instead of 401.