generated from amazon-archives/__template_Custom
-
Couldn't load subscription status.
- Fork 106
Update user parsing to include custom attributes #827
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
Merged
cwperks
merged 52 commits into
opensearch-project:main
from
cloud-gov:update-user-parsing
Aug 15, 2025
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
5dba6b4
update junit library to 5.11.4 to enable debugging in VScode. see htt…
markdboyd 0dfeb66
update User.parse() to parse custom attribute names from string
markdboyd 78b0b78
update unit test to verify that User.parse() parses custom attribute …
markdboyd f6b3e97
apply spotless formatting
markdboyd 9cec5ac
add more debug logs
markdboyd 40b6a5c
update debug statements
markdboyd 0d78d8e
remove debug logging
markdboyd 8346d84
remove changes to build.gradle
markdboyd f44f4b5
add logic in User.parse to handle case where tenant is "null" as a li…
markdboyd 3b8fd74
add test for User.parse where tenant is literal string "null"
markdboyd 24ad224
add initial pass at deserializing user custom attributes from thread …
markdboyd 68ae6d6
apply spotless formatting
markdboyd 7e42436
add Base64Helper for deserializing base 64 encoded content
markdboyd 56efe37
move files into correct directory structure
markdboyd 49a7209
update junit-jupiter-engine to 5.11.4
markdboyd 56e5f1b
remove unnecessary throws IOException in definition of User.parse()
markdboyd bb23f06
update tests for User
markdboyd 6304063
update InjectSecurityTest for compatibility with user custom attribut…
markdboyd 0b859cd
update testParseUserString to test for serialized custom user attributes
markdboyd ccc8475
refactor parsing of tenant information from string in User.parse
markdboyd 59b647f
add additional classes to SafeSerializationUtils.SAFE_CLASS_NAMES
markdboyd aebab23
Update src/test/java/org/opensearch/commons/authuser/UserTest.java
markdboyd 805bcab
fix variable reference
markdboyd 35443a1
stub out test for User.parse of XContent
markdboyd 4e98ed3
fix arguments to create User in TestHelpers.kt
markdboyd f714da2
fix testParseUserXContent test and add more test assertions for other…
markdboyd 17d2d75
add Base64HelperTest
markdboyd b604357
add SafeSerializationUtilsTest.java
markdboyd d300c3f
run spotlessApply
markdboyd 918a27b
update User.toString() to use TreeMap for custom attributes to keep a…
markdboyd d00efdd
update User tests for parsing from JSON string to include custom attr…
markdboyd 890d7ff
add test for parsing user custom attributes from JSON
markdboyd 56cfc3d
update custom_attributes in XContentTests fixture
markdboyd 23d9e43
remove special handling of requestedTenant in User.parse()
markdboyd ff78bfe
update expectation for tenant in testParseUserStringNameWithNullTenant
markdboyd a8df5d7
update User to preserve backwards compatibilty for custom attributes …
markdboyd 59e163d
include parsing of custom attribute names from JSON in User.parse() f…
markdboyd 64a5ff9
apply spotless formatting
markdboyd d3896b7
update ser/de for user to stream to handle backwards compatibility fo…
markdboyd c8fa0dd
add test for streaming user on older versions of OpenSearch for backw…
markdboyd 7519da5
fix bad rebasing
markdboyd dae4485
fix bad rebasing
markdboyd 32cda23
update comment on User.parse() for string to specify expected string …
markdboyd bfdd5c7
re-add constructor for User with custom attribute names for backwards…
markdboyd 43a7386
re-add getter for custom attribute names to User for backwards compat…
markdboyd eeb800f
add test of User constructor with custom attribute names for backward…
markdboyd 13f5854
fix spotless formatting issues
markdboyd b3b1e4e
update InjectSecurity.injectUserInfo() to set user custom attributes …
markdboyd 16cc318
apply spotless formatting
markdboyd 1bdbfad
update User.toXContent() to conditionally include custom attributes w…
markdboyd 01e471d
fix unit test expectation
markdboyd 1531830
apply spotless formatting
markdboyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.