Skip to content
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

refactor(core): refactor GET saml app metadata endpoint #6938

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

darcyYe
Copy link
Contributor

@darcyYe darcyYe commented Jan 13, 2025

Summary

refactor GET saml app metadata endpoint, reuse SamlApplication class instead of using seprated methods to keep accordance. (resolves LOG-10699)
Previously we check all config attributes when construct the SamlApplication class, but in fact, we should only check those attributes when needed. E.g. when constructing IdP, we do not need to check the config of acsUrl, we hence update the implementation as well to fix this.

Testing

Should be covered by existing integration tests.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

github-actions bot commented Jan 13, 2025

COMPARE TO master

Total Size Diff 📉 -1.08 KB

Diff by File
Name Diff
packages/core/src/saml-applications/SamlApplication/index.ts 📉 -31 Bytes
packages/core/src/saml-applications/libraries/saml-applications.ts 📉 -1.13 KB
packages/core/src/saml-applications/routes/anonymous.ts 📉 -18 Bytes

@darcyYe darcyYe force-pushed the yemq-refactor-get-saml-app-metadata-endpoint branch from 4659abf to 284980d Compare January 14, 2025 08:58
@darcyYe darcyYe merged commit c41ecc4 into master Jan 14, 2025
37 checks passed
@darcyYe darcyYe deleted the yemq-refactor-get-saml-app-metadata-endpoint branch January 14, 2025 09:24
wangsijie pushed a commit that referenced this pull request Jan 24, 2025
* refactor(core): refactor GET saml app metadata endpoint

* refactor: refactor SamlApplication class to validate only necessary fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better size/m
Development

Successfully merging this pull request may close these issues.

2 participants