-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[OID4VCI] Make sure events are properly used in OID4VCI endpoints #44946
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
base: main
Are you sure you want to change the base?
Conversation
Closses: keycloak#44679 Signed-off-by: forkimenjeckayang <[email protected]>
mposolda
left a comment
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.
@forkimenjeckayang Thanks for this PR!
I've added few minor comments inline. Besides that, is it please possible to test also some error scenarios a little bit? As it seems all the event tests are testing mostly successful flow scenarios.
It looks that in case of OID4VCAuthorizationCodeFlowTest , there are not yet any error scenarios tested (I am adding some in the PR #44954 ), but for some other automated tests, hopefully it is possible to test some "error events" ?
server-spi-private/src/main/java/org/keycloak/events/EventType.java
Outdated
Show resolved
Hide resolved
services/src/main/java/org/keycloak/protocol/oid4vc/issuance/OID4VCIssuerEndpoint.java
Outdated
Show resolved
Hide resolved
services/src/main/java/org/keycloak/protocol/oid4vc/issuance/OID4VCIssuerEndpoint.java
Outdated
Show resolved
Hide resolved
|
@forkimenjeckayang Small hint (not directly related to this PR): Can you please try to add some line with just something like: in the PR descriptions? It might be added automatically if you use this in the commit message (which is preferred). If you use something like: It is not ideal as it does not automatically link the PR with the related issue. |
|
@forkimenjeckayang I've merged the PR for "mandatory" claims #44954 . Is it possible that in this PR, you add also error event details in the Also should be possible to test it somehow in |
Hello @mposolda , yes sure, I will address that. The PR should be ready again by tomorrow |
closes keycloak#44679 Signed-off-by: forkimenjeckayang <[email protected]>
|
Hello @mposolda , i've taken into consideration all you mentioned above. |
Summary
Adds event tracking to all OID4VCI issuance endpoints to align with Keycloak's event system.
Changes
CREDENTIAL_REQUEST,CREDENTIAL_OFFER_REQUEST, andCREDENTIAL_NONCE_REQUEST(with error variants)/credential- tracks credential issuance requests/credential-offer-uri- tracks offer URI generation/credential-offer/{nonce}- tracks offer retrieval/nonce- tracks nonce generationcloses #44679