-
Notifications
You must be signed in to change notification settings - Fork 12
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
AuthorizationServerMetadataResolver queries the issuer for openid-configuration
when authorization_servers
is defined in issuer metadata
#58
Comments
openid-configuration
when authorization_servers
is defined in issuer metadata
Thank you for your feedback @srosenda! Based on the logic related to metadata retrieval, we believe we are conforming to the spec. It seems the part you're referencing may be in the metadata decoding, where we fallback to the credential issuer if we cannot locate an auth server. eudi-lib-ios-openid4vci-swift/Sources/Entities/CredentialIssuer/CredentialIssuerMetadata.swift Lines 81 to 90 in ac62cca
That being said, if this fallback mechanism is not clear to readers, we can implement this directly at the resolver level. We'd be happy to submit a PR on our side, or review and accept a PR from your end to address this. |
I understand the OpenID4VCI specification text (which is the same also in draft14 and the current editor's draft) so that
If I run the our wallet implementation under Instruments and record HTTP traffic from OpenID4VCI issuance, I can see two requests to |
Re-reading the specification once more it also explicitly states that the Authorization Server metadata is obtained from the oauth-authorization-server well-known location as defined in Section 3 of [RFC8414]. The |
Thank you so much for your comprehensive analysis on this srosenda . I'll be following up here soon. |
According to the OpenID4VCI specification the OpenID configuration should be queried only if the credential issuer metadata does not include the
authorization_servers
parameter.11.2.3. Credential Issuer Metadata Parameters
Furthermore the logic in the code ignores the defined
authorization_servers
completely if it is able to obtain the OpenID configuration from the issuer.See
eudi-lib-ios-openid4vci-swift/Sources/Main/Resolvers/CredentialOffer/AuthorizationServerMetadataResolver.swift
Lines 54 to 72 in ac62cca
and
eudi-lib-ios-openid4vci-swift/Sources/Main/Resolvers/CredentialOffer/AuthorizationServerMetadataResolver.swift
Lines 84 to 93 in ac62cca
The text was updated successfully, but these errors were encountered: