-
Notifications
You must be signed in to change notification settings - Fork 16
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
use presentation definition endpoint to get presentation definition from other party #2491
Comments
The return value of the presentation definition endpoint can not change when it's called for a different patient. So The backends that provide the scope to presentation definition mapping can later still deny access when the actual VP token is presented. "412 - patient unknown or given combination of credentials does not allow access" |
Given the feedback in #2492, we need to decide how to handle/support multiple scopes (and maybe also variable scopes). The PR just gives a naive implementation to get started. The mapping we currently have is single scope to PresentationDefinition. From a use case point of view I could see a case for How should we handle something like this: |
Every requested scope must be supported, so |
The PD mapping will be handles by (multiple) backends, so the eOverdracht backend will get the entire scope as above but is not interested in the |
Proposal to keep things a bit simple: The scope param MUST contain at least one and at most 2 scopes. The first scope is used to send the PD request to the correct backend. The second scope is used when the submission is submitted, it can check access on the patient/resource level at the backend. The 2nd scope doesn't influence the resulting PD. More than 2 scopes generates an error, an unknown first scope generates an error. |
The presentation definition endpoint is not defined in any standard.
We place it under
/iam/:did/presentation_definition?scope=
The text was updated successfully, but these errors were encountered: