-
Notifications
You must be signed in to change notification settings - Fork 7
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
Invenio-damap: Support connection from InvenioRDM #83
Conversation
SonarCloud Quality Gate failed. |
d10007a
to
e7b67d6
Compare
0a03762
to
a1ecd3b
Compare
f92d1d4
to
21bfb59
Compare
Quality Gate passedIssues Measures |
Please make sure to squash the commits :) |
21bfb59
to
60863ed
Compare
60863ed
to
29d93ab
Compare
88cda19
to
47e5e7b
Compare
f759727
to
5203c11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work implementing the jwt authorization 🚀
What might be missing is refactoring/moving some of the logic from the resource level to the service level. Also making sure that the service can be overwritten aka an own service can be provided.
Might be appropriate to move authorization logic to the security service (also ensuring an own service can be provided).
I still have to test this locally so some other issues might come up.
src/main/java/org/damap/base/rest/invenio_damap/DMPPayload.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/DMPPayload.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
5203c11
to
0dc9796
Compare
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
7fef804
to
a1d7629
Compare
src/main/java/org/damap/base/rest/invenio_damap/InvenioDamapResourceMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DAMAP should return a:
- 401 if the no valid authentication schema is provided, identity could not be resolved or multiple identities resolve to different DMPs.
- 403 if the identity can be resolved, but this identity is not allowed to perform a certain action
- 404 if an endpoint is not found, a resource is not available (i.e. wrong DMP id when adding a dataset), or to mask a 403 if the existence of a resource should not be revealed)
5611227
to
6b43696
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking very good. Just some small comments.
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDAMAPService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDamapResourceMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/damap/base/rest/invenio_damap/InvenioDamapResourceMapper.java
Outdated
Show resolved
Hide resolved
5b741b6
to
b628558
Compare
LGTM 🚀 |
b628558
to
98439f1
Compare
* Update re3data XML with root element * Update library usages due to library migration --------- Co-authored-by: Sotiris Tsepelakis <[email protected]> Co-authored-by: ValentinFutterer <[email protected]>
98439f1
to
5465edd
Compare
Quality Gate failedFailed conditions |
Description
Feature
What does this PR do?
Breaking changes
Code review focus
Mapping common maDMP standard dataset to DmpDO.
Dependencies
Checks
closes fair-data-austria/invenio-damap#13, fair-data-austria/invenio-damap#7