DO NOT MERGE: example audit trail service #480
Draft
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.
CLB-751 for context.
this PR is only an example on how we could use the new audit trail service in OP
This service works a bit like the privacy service, but logs the
dcterms:identifier
of the logged in user (vo-id
on acmidm).In order to test it, you would need to login with an user that has a
dcterms:identifer
in itsfoaf:OnlineAccount
.MOCK LOGIN users don't have it, so you would need to add it manually (through a migration, or directly on virtuoso)
Once logged in, copy the
Cookie
, then you can usecurl
to try it out.Example for getting the
family-name
andgiven-name
of person with idfa346447ef3262f90217c8534e49e9f7
and reason3aeec145-acf3-4b6e-9c00-5b8e285736e0
:Result:
Audit log: