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

Create complex object to store role properties #417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShanChathusanda93
Copy link
Contributor

@ShanChathusanda93 ShanChathusanda93 commented Dec 10, 2024

Purpose

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 56.52174% with 10 lines in your changes missing coverage. Please review.

Project coverage is 28.45%. Comparing base (f394957) to head (fbdb315).

Files with missing lines Patch % Lines
...ain/java/org/wso2/charon3/core/objects/RoleV2.java 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #417      +/-   ##
============================================
+ Coverage     28.40%   28.45%   +0.04%     
  Complexity      919      919              
============================================
  Files           133      133              
  Lines         13007    13030      +23     
  Branches       2504     2504              
============================================
+ Hits           3695     3708      +13     
- Misses         8839     8849      +10     
  Partials        473      473              
Flag Coverage Δ
unit 27.63% <56.52%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -612,6 +619,11 @@ public static class RoleSchemaConstants {
public static final String AUDIENCE_DISPLAY_URI =
"urn:ietf:params:scim:schemas:extension:2.0:Role:audience.display";
public static final String AUDIENCE_TYPE_URI = "urn:ietf:params:scim:schemas:extension:2.0:Role:audience.type";
public static final String ROLE_PROPERTY_NAME_URI =
"urn:ietf:params:scim:schemas:extension:2.0:Role:roleProperties.name";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"urn:ietf:params:scim:schemas:extension:2.0:Role:roleProperties.name";
"urn:ietf:params:scim:schemas:extension:2.0:Role:properties.name";

@@ -612,6 +619,11 @@ public static class RoleSchemaConstants {
public static final String AUDIENCE_DISPLAY_URI =
"urn:ietf:params:scim:schemas:extension:2.0:Role:audience.display";
public static final String AUDIENCE_TYPE_URI = "urn:ietf:params:scim:schemas:extension:2.0:Role:audience.type";
public static final String ROLE_PROPERTY_NAME_URI =
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static final String ROLE_PROPERTY_NAME_URI =
public static final String PROPERTIES_NAME_URI =

@@ -550,6 +550,10 @@ public static class RoleSchemaConstants {
public static final String DISPLAY = "display";
public static final String VALUE = "value";
public static final String TYPE = "type";
public static final String ROLE_PROPERTIES_URI =
"urn:ietf:params:scim:schemas:extension:2.0:Role:roleProperties";
public static final String ROLE_PROPERTIES = "roleProperties";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static final String ROLE_PROPERTIES = "roleProperties";
public static final String PROPERTIES = "roleProperties";

SCIMConstants.RoleSchemaConstants.ROLE_PROPERTY_NAME, SCIMDefinitions.DataType.STRING, false,
SCIMConstants.RoleSchemaConstants.ROLE_PROPERTY_NAME_DESC, false, false,
SCIMDefinitions.Mutability.IMMUTABLE, SCIMDefinitions.Returned.DEFAULT,
SCIMDefinitions.Uniqueness.NONE, null, null, null);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name needs to be unique

@ShanChathusanda93 ShanChathusanda93 force-pushed the role-prop-charon-branch branch 4 times, most recently from 5b11bd6 to eb501c2 Compare December 12, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for creating OAuth 2.0 clients inside B2B organizations for B2B API access
1 participant