-
Notifications
You must be signed in to change notification settings - Fork 174
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
Conversation
This file contains 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
ilgrosso
changed the title
[SYNCOPE-1737] Adding and managing releaseAttrs via DefaultAttrReleas…
[SYNCOPE-1737] Adding and managing releaseAttrs via DefaultAttrReleasePolicyConf
Mar 2, 2023
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
added a commit
to ilgrosso/syncope
that referenced
this pull request
Mar 3, 2023
ilgrosso
added a commit
that referenced
this pull request
Mar 4, 2023
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.
…ePolicyConf