[OB3] Role extraction improvement - add support to extract both PSD2 and PSP roles from the certificate as needed #164
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.
[OB3] Role extraction improvement - add support to extract both PSD2 and PSP roles from the certificate as needed
CertificateContent
class. The relevant variable is initialized when extracting the certificate content from theextract()
method of theCertificateContentExtractor
class.DCRTPPValidationExecutor
is changed to get the PSD2 roles for doing its validation. The reason for this is the UK SSA comes with the PSD2 role formats such as AISP, PISP, etc. This class will later be moved to the UK toolkit. Hence this class is marked as deprecated.APITPPValidationExecutor
is changed to get the PSP roles for doing its validation. The reason for this is that the role validation needs to be done using the roles defined in the certificate as it is.Related Issue link:
#163
Doc Issue: N/A
Applicable Labels: OB2
Development Checklist
Testing Checklist
Automation Test Details
Conformance Tests Details
Resources
Knowledge Base: https://sites.google.com/wso2.com/open-banking/
Guides: https://sites.google.com/wso2.com/open-banking/developer-guides