-
Notifications
You must be signed in to change notification settings - Fork 631
feat: SAML #1192
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
Open
sattvikc
wants to merge
64
commits into
11.2
Choose a base branch
from
feat/saml/impl-1
base: 11.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: SAML #1192
Conversation
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
sattvikc
commented
Oct 15, 2025
src/main/java/io/supertokens/webserver/api/saml/CreateOrUpdateSamlClientAPI.java
Outdated
Show resolved
Hide resolved
This reverts commit 2d5a07c.
* experiment: Deadlock logger * fix: race issue with oauth refresh (#1199) * fix: race issue with oauth refresh * fix: review comment * fix: remove print * fix: deadlock in resource distributor (#1197) * adding dev-v11.2.1 tag to this commit to ensure building * fix: add deadlock logger * fix: changelog and build version * fix: only start deadlocklogger if it's enabled --------- Co-authored-by: Sattvik Chakravarthy <sattvik@supertokens.com> Co-authored-by: Supertokens Bot <>
porcellus
requested changes
Nov 13, 2025
src/main/java/io/supertokens/inmemorydb/queries/SAMLQueries.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/inmemorydb/queries/SAMLQueries.java
Outdated
Show resolved
Hide resolved
Comment on lines
+240
to
+249
| byte[] bytes = metadataXML.getBytes(StandardCharsets.UTF_8); | ||
| try (InputStream inputStream = new java.io.ByteArrayInputStream(bytes)) { | ||
| XMLObject xmlObject = XMLObjectSupport.unmarshallFromInputStream( | ||
| XMLObjectProviderRegistrySupport.getParserPool(), inputStream); | ||
| if (xmlObject instanceof EntityDescriptor) { | ||
| return (EntityDescriptor) xmlObject; | ||
| } else { | ||
| throw new RuntimeException("Expected EntityDescriptor but got: " + xmlObject.getClass()); | ||
| } | ||
| } |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XML deserialization is a frequent source of security issues - is there anything we need to/can do here?
porcellus
approved these changes
Nov 14, 2025
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.
Summary of change
(A few sentences about this PR)
Related issues
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your
changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here
highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.jsonfile has been updated (if needed)pluginInterfaceSupported.jsonfile has been updated (if needed)build.gradlegetPaidFeatureStatsfunction in FeatureFlag.java filebuild.gradle, please make sure to add themin
implementationDependencies.json.getValidFieldsinio/supertokens/config/CoreConfig.javaif new aliases were added for any coreconfig (similar to the
access_token_signing_key_update_intervalconfig alias).git tag) in the formatvX.Y.Z, and then find thelatest branch (
git branch --all) whoseX.Yis greater than the latest released tag.app_id_to_user_idtable, make sure to delete from this table when deletingthe user as well if
deleteUserIdMappingToois false.Remaining TODOs for this PR