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

[SYNCOPE-1737] Managing releaseAttrs via DefaultAttrReleasePolicyConf #418

Merged
merged 4 commits into from
Mar 3, 2023

Conversation

ilgrosso
Copy link
Member

@ilgrosso ilgrosso commented Mar 2, 2023

…ePolicyConf

@ilgrosso ilgrosso changed the title [SYNCOPE-1737] Adding and managing releaseAttrs via DefaultAttrReleas… [SYNCOPE-1737] Adding and managing releaseAttrs via DefaultAttrReleasePolicyConf Mar 2, 2023
@ilgrosso ilgrosso changed the title [SYNCOPE-1737] Adding and managing releaseAttrs via DefaultAttrReleasePolicyConf [SYNCOPE-1737] Managing releaseAttrs via DefaultAttrReleasePolicyConf Mar 2, 2023
} else if (attributeReleasePolicy instanceof ReturnAllowedAttributeReleasePolicy) {
customClaims.addAll(((ReturnAllowedAttributeReleasePolicy) attributeReleasePolicy).
getAllowedAttributes().stream().collect(Collectors.toSet()));
} else if (attributeReleasePolicy instanceof ChainingAttributeReleasePolicy) {

Check failure

Code scanning / CodeQL

Contradictory type checks

This access of [attributeReleasePolicy](1) cannot be of type [ChainingAttributeReleasePolicy](2), since [this expression](3) ensures that it is not of type [ChainingAttributeReleasePolicy](2).
customClaims.addAll(((ReturnAllowedAttributeReleasePolicy) attributeReleasePolicy).
getAllowedAttributes().stream().collect(Collectors.toSet()));
} else if (attributeReleasePolicy instanceof ChainingAttributeReleasePolicy) {
((ChainingAttributeReleasePolicy) attributeReleasePolicy).getPolicies().stream().

Check failure

Code scanning / CodeQL

Contradictory type checks

This access of [attributeReleasePolicy](1) cannot be of type [ChainingAttributeReleasePolicy](2), since [this expression](3) ensures that it is not of type [ChainingAttributeReleasePolicy](2).
@@ -119,6 +123,10 @@

private final PrincipalAttrRepoConf principalAttrRepoConf = new PrincipalAttrRepoConf();

public Map<String, Object> getReleaseAttrs() {

Check notice

Code scanning / CodeQL

Exposing internal representation

getReleaseAttrs exposes the internal representation stored in field releaseAttrs. The value may be modified [after this call to getReleaseAttrs](1). getReleaseAttrs exposes the internal representation stored in field releaseAttrs. The value may be modified [after this call to getReleaseAttrs](2). getReleaseAttrs exposes the internal representation stored in field releaseAttrs. The value may be modified [after this call to getReleaseAttrs](3).
@ilgrosso ilgrosso merged commit e2e12a9 into apache:3_0_X Mar 3, 2023
@ilgrosso ilgrosso deleted the SYNCOPE-1737 branch March 3, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant