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

feat(jans-auth-server): used single-valued attribute for client id instead of multi-valued where it is needed (e.g. jansClntAuthz ) #10033 #10034

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

yuriyz
Copy link
Contributor

@yuriyz yuriyz commented Nov 4, 2024

Description

feat(jans-auth-server): used single-valued attribute for client id instead of multi-valued where it is needed (e.g. jansClntAuthz )

Target issue

closes #10033

Please check the below before submitting your PR. The PR will not be merged if there are no commits that start with docs: to indicate documentation changes or if the below checklist is not selected.

  • I confirm that there is no impact on the docs due to the code changes in this PR.

…stead of multi-valued where it is needed (e.g. jansClntAuthz ) #10033

Signed-off-by: YuriyZ <[email protected]>
Copy link

dryrunsecurity bot commented Nov 4, 2024

DryRun Security Summary

The pull request includes updates to the ClientAuthorization and PairwiseIdentifier classes, as well as changes to the Jans schema, which should be carefully reviewed to ensure that the application's security is not compromised.

Expand for full summary

Summary:

The code changes in this pull request involve updates to the ClientAuthorization and PairwiseIdentifier classes, as well as changes to the Jans schema. While these changes do not appear to introduce any immediate security concerns, it's essential to review them carefully to ensure that the application's security is not compromised.

The key changes include the renaming of the jansClntId attribute to clnId in the ClientAuthorization classes, and the renaming of the jansClntId attribute to clnId in the PairwiseIdentifier class. These changes seem to be part of a refactoring effort and do not directly impact the application's security.

However, it's important to consider the broader context of these changes and ensure that the application's security practices are not affected. This includes verifying that the client ID is properly validated and sanitized, that the authorization information is properly secured, and that the pairwise identifier functionality is implemented securely and in accordance with best practices.

Additionally, the changes to the Jans schema introduce several attributes related to authentication, OAuth2, OpenID Connect, and SAML. These changes should be thoroughly reviewed to ensure that the application's security mechanisms are not compromised and that sensitive user data is properly protected.

Files Changed:

  1. jans-casa/plugins/client-authorizations/src/main/java/io/jans/casa/plugins/consent/model/ClientAuthorization.java:

    • The @AttributeName annotation on the jansClntId field has been updated to include the name attribute, setting it to "clnId".
  2. jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/ClientAuthorization.java:

    • The @AttributeName(name = "jansClntId", consistency = true) annotation has been changed to @AttributeName(name = "clnId", consistency = true).
  3. jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/PairwiseIdentifier.java:

    • The jansClntId attribute has been renamed to clnId.
  4. jans-linux-setup/jans_setup/schema/jans_schema.json:

    • The schema includes changes to the jansPairwiseIdentifier and jansPerson object classes, as well as attributes related to authentication, OAuth2, OpenID Connect, and SAML.

Code Analysis

We ran 9 analyzers against 4 files and 1 analyzer had findings. 8 analyzers had no findings.

Analyzer Findings
Authn/Authz Analyzer 3 findings

Riskiness

🟢 Risk threshold not exceeded.

View PR in the DryRun Dashboard.

yuriyzz
yuriyzz previously approved these changes Nov 4, 2024
@mo-auto mo-auto added comp-jans-auth-server Component affected by issue or PR comp-jans-casa Touching folder /jans-casa comp-jans-linux-setup Component affected by issue or PR kind-feature Issue or PR is a new feature request labels Nov 4, 2024
@yuriyz yuriyz enabled auto-merge (squash) November 4, 2024 14:45
Signed-off-by: YuriyZ <[email protected]>
Copy link

sonarcloud bot commented Nov 4, 2024

@yuriyz yuriyz merged commit d0f213a into main Nov 4, 2024
38 of 44 checks passed
@yuriyz yuriyz deleted the jans-auth-server-10033 branch November 4, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-auth-server Component affected by issue or PR comp-jans-casa Touching folder /jans-casa comp-jans-linux-setup Component affected by issue or PR kind-feature Issue or PR is a new feature request
Projects
None yet
4 participants