PresentationQuery Accesstoken verification problem #4207
-
I have a local setup with a consumer and a provider running, both have a connector instance and a IH instance (much like the mvd iatp). The IHs are equipped with a SecureTokenService API and the connectors use the RemoteSecureTokenService to obtain an SI token from the IH. While sending a CatalogRequestMessage from consumer to provider I ran into a problem with the PresentationQuery flow. The consumer sends an SI token with an embedded access token that can used to request VP's for the given scope from the consumer. Both the SI token and the embedded access token are signed by the same private key, which belongs to the specific StsClient. The provider then creates its own SI, embeds the access token and sends a request to /presentations/query on the consumer. The IH of the consumer then tries to verify both the SI from the provider as well as the access token. However, it fails to verify the access token as it seems to be verified using a different public key, pre configured using the config value from Specifically: https://github.com/eclipse-edc/IdentityHub/blob/25e233f726b5fc6091ddedaeeb0b5ccbbc5b2a20/core/lib/accesstoken-lib/src/main/java/org/eclipse/edc/identityhub/accesstoken/verification/AccessTokenVerifierImpl.java#L95. Here it tries to resolve a public key using the public key What am I doing wrong? How can I make sure it verifies the AccessToken based on the private key belonging to the actual StsClient? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
when the consumer's IH tries to verify the SI token, that the provider created, and that contains the access token, the following applies:
Generally, to gain a better insight, I highly recommend familiarizing yourself in depth with the IATP specification, in particular the Presentation Flow (issuance is not yet implemented in IH). In addition, I advise against using dummy values, as all our config values must be used with intent. |
Beta Was this translation helpful? Give feedback.
I think i mentioned in a previous encounter that IH is NOT a finalized project/product, and it is not ready for production use. As such, it lacks documentation, and we can't provide 1:1 guidance and help.
I do see your point thought, although I cannot make any assertions as to if and when we will tackle the issue. For now, just use pre-generated keys and 1 tenant per IH, just like the setup you initially described.
[edit]: created eclipse-edc/IdentityHub#356 to track this.