Skip to content

Requirement for advanced / high assurance features of OpenID4VCI? #37

Open

Description

@TimoGlastra

All of these are defined in HAIP whether required. We should define whether they MAY, MUST or MUST NOT be used in DIIP:

Such as:

  • PKCE
  • DPoP
  • Wallet Attestations
  • Key Attestations
  • Batch issuance
  • Credential refresh

My proposal for V4 would be:

Required:

  • PKCE
  • DPoP
  • Wallet attestations (we can also push this to v5)

Optional:

  • Batch issuance (it's an opt-in feature and does not matter if one of wallet/issuer supports it, so making it optional allowing supporting wallets/issuers to use it. In future versions we can make it required to support (not use))

Out of scope

  • Credential refresh
  • Key attestations (for v5?)

Not sure if everyone is ready to support Wallet Attestations as it requires a backend, we can also push it to v5 (we are in the progress of supporting this). But it does increase security by knowing you issue into a trusted wallet.

Activity

  1. changed the title [-]Requirement for High assurance features of OpenID4VCI?[/-] [+]Requirement for advanced / high assurance features of OpenID4VCI?[/+] on Apr 28, 2025
  2. samuelmr commented on Apr 28, 2025

    @samuelmr
    Collaborator

    For which use cases you'd require support for PKCE, DPoP, and wallet attestations?

    I really would like to aim for a "minimum viable profile".

  3. samuelmr commented on Apr 28, 2025

    @samuelmr
    Collaborator

    I'm pretty sure that the DIIP profile should not have any "MUST NOT" requirements.

    I also think that "MAY" requirements are not useful in an interop profile.

  4. samuelmr commented on Apr 28, 2025

    @samuelmr
    Collaborator

    Maybe #38 is also a reason not to require DPoP?

  5. TimoGlastra commented on Apr 28, 2025

    @TimoGlastra
    CollaboratorAuthor

    I'm pretty sure that the DIIP profile should not have any "MUST NOT" requirements.

    I think MUST NOT's are important for a profile. Because if some implementations are going to use these features and onther don't support it, we don't interop. Implementations are free to use more features, but it's not in line with the profile anymore in that case (but a small deviation).

    For which use cases you'd require support for PKCE, DPoP, and wallet attestations?

    Well it depends. But if DIIP is going to be used for business i'd say all of these should be used. There is no reason not to use PKCE (so i say it MUST be required), others just improve security.

    Maybe #38 is also a reason not to require DPoP?

    DPoP is separate from key attestations. DPoP just requiers that all requests to the server are accompanied by a signature with a key that is bound to an access token. This means that stealing an access token is not enough enough to steal a session. For mobile wallet you can generate this in the secure enclave so a session is device bound.

    I really would like to aim for a "minimum viable profile".

    Generally I'm ok with this but it does have impact on what DIIP can and should be used for. For me "minimum viable profile" and organizational wallet don't match, if we keep out a lot of security features. And IMO all implementations should support
    features such as:

    • wallet attestations
    • dpop
    • pkce

    i see use cases where key attestations are not required (and maybe some cases where even wallet attestations don't matter). But by not requireing it you rule out ALL use cases where it is required. While you can always downgrade if it's not needed (since key attestations are defined by the issuer whether its' reuired for a speicfic credential). So requiring Wallet attestations, DPoP and PKCE still keeps requirements relatively accessible, while also enabling more high assurance use cases

  6. nklomp commented on Apr 28, 2025

    @nklomp
    Collaborator

    I think thinks like PKCE and PAR are typically more commonly implemented (they are regular well established OAuth constructs) at this point and are also handled gracefully if not supported. I suggest to do dpop and attestations in the next version to keep it manageable for everyone

  7. samuelmr commented on Apr 29, 2025

    @samuelmr
    Collaborator

    I think MUST NOT's are important for a profile. Because if some implementations are going to use these features and onther don't support it, we don't interop. Implementations are free to use more features, but it's not in line with the profile anymore in that case (but a small deviation).

    Do you mean that if DIIP only requires SD-JWTs and W3C DM credential formats, a wallet that also supports AnonCreds is not DIIP-compliant?

    I agree that an issuer who chooses to issue Anoncreds is not complying to DIIP.
    If that issuer's credential agent potentially could issue Anoncreds, but the issuer uses it to issue SD-JWT VCs, I think that both the issuer and the credential agent are still DIIP-compliant.

    So your "MUST NOT" requirement falls more on the users of the software than on software providers.

  8. samuelmr commented on Apr 29, 2025

    @samuelmr
    Collaborator

    i see use cases where key attestations are not required (and maybe some cases where even wallet attestations don't matter). But by not requireing it you rule out ALL use cases where it is required. While you can always downgrade if it's not needed (since key attestations are defined by the issuer whether its' reuired for a speicfic credential). So requiring Wallet attestations, DPoP and PKCE still keeps requirements relatively accessible, while also enabling more high assurance use cases

    We had a short discussion about this in the April meetup. In my opinion, DIIP should focus on use cases where device binding is unnecessary. When you want to bind a credential to the holder's key material, are there reasons not to use HAIP?

  9. nklomp commented on Apr 29, 2025

    @nklomp
    Collaborator

    Hmzz, unnecessary is maybe a bit strong. In a lot of cases we would do device binding for organizational entities, without doing full HAIP. The mere fact HAIP relies on X.509 and does not support DIDs, does not mean you cannot have devicebinding with DIDs. IMO that should be a pretty common use case regarless

  10. TimoGlastra commented on Apr 29, 2025

    @TimoGlastra
    CollaboratorAuthor

    Do you mean that if DIIP only requires SD-JWTs and W3C DM credential formats, a wallet that also supports AnonCreds is not DIIP-compliant?

    In that case, yes it will still be compliant. However not all features are always dynamic like this. If DIIP requires PAR, I would like to configure our authorization server metadata with require_pushed_authorization_requests, so it's also clear to the wallet that PAR MUST be used. So if you set this to false, you're not DIIP compliant anymore.

    In most cases you can dynamically deviate, but then the exchange is not DIIP compliant. If both issuer and wallet support HAIP, but also support DIDs and decide to issue a DID bound credential, the exchange is not compliant to HAIP, as it doesn't follow the rules of HAIP.

    Saying MUST NOT in a profile, doesn't rule out anything, it just rules out that to align with this specific profile you MUST NOT do something. You're free to not follow this profile if both parties support this non-standard flow. (however in most cases you can just write the MUST NOT as a MUST if you reverse it).

    In my opinion, DIIP should focus on use cases where device binding is unnecessary.
    As also raised somewhere else, I think business case often require high assurance, so I think if we only focus on the cases where key attestations are not required is too limiting in my opinion. An issuer does not have to support key binding at all, as you can dictate whether key attestations are used in the issuer metadata, so it's mostly a requirement for the wallet.

    For me DIIP has most benefit if we can also cater to the high-(er) assurance use cases, but in way where a) trust is defined (used OpenID Federation) and b) we can use DIDs instead of X509 certificates.

  11. k00ij commented on May 1, 2025

    @k00ij
    Contributor

    I agree that we do not need to rule out all "higher assurance features". As you may indeed want to include some of such features in use cases that use DIDs and VCDM creds (which would not currently fit in HAIP). But interested to hear from implementers what is feasible for DIIP V4 (and implementations by approx end of May).

  12. samuelmr commented on May 2, 2025

    @samuelmr
    Collaborator

    In a lot of cases we would do device binding for organizational entities, without doing full HAIP.

    In which cases is it required to do device binding for organizational entities? (Instead of just having the organization's did:web identifier as the sub or credentialSubject and checking the holder's control over that DID in the verification process?

  13. samuelmr commented on May 2, 2025

    @samuelmr
    Collaborator

    For me DIIP has most benefit if we can also cater to the high-(er) assurance use cases, but in way where a) trust is defined (used OpenID Federation) and b) we can use DIDs instead of X509 certificates.

    We decided to drop the requirement to support OpenID Federation for now...

  14. samuelmr commented on May 2, 2025

    @samuelmr
    Collaborator

    Suggestion:

    "Proof Key for Code Exchange ([PKCE]) defines a way to mitigate against authorization code interception attack. Pushed authorization request ([PAR]) allows clients to push the payload of an authorization request directly to the authorization server. These features may be needed in higher assurance use cases or for protecting privacy."

    and

    "Requirement: DIIP-compliant implementations MUST support [PKCE] and [PAR]."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions