Skip to content
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

feat! auth code flow #2088

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

feat! auth code flow #2088

wants to merge 17 commits into from

Commits on Aug 30, 2024

  1. fix: auth code flow alpha

    auer-martin committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    5cd08fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b64bce3 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. fix: make eslint happy

    auer-martin authored and TimoGlastra committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    80b55b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ccb645 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ab5b22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bd02008 View commit details
    Browse the repository at this point in the history
  5. fix: host separate oauth-auhtorization-server

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    b2eb533 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. temp

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    3de4e82 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. temp

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    c0b49dc View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. some updates

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    be9876b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e1050b View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. feat: working and tests passing

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    c7f9eb3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef57b9d View commit details
    Browse the repository at this point in the history
  3. docs(changeset): feat(openid4vc): oid4vci authorization code flow, pr…

    …esentation during issuance and batch issuance.
    
    This is a big change to OpenID4VCI in Credo, with the neccsary breaking changes since we first added it to the framework. Over time the spec has changed significantly, but also our understanding of the standards and protocols.
    
    **Authorization Code Flow**
    Credo now supports the authorization code flow, for both issuer and holder. An issuer can configure multiple authorization servers, and work with external authorization servers as well. The integration is based on OAuth2, with several extension specifications, mainly the OAuth2 JWT Access Token Profile, as well as Token Introspection (for opaque access tokens). Verification works out of the box, as longs as the authorization server has a `jwks_uri` configured. For Token Introspection it's also required to provide a `clientId` and `clientSecret` in the authorization server config.
    
    To use an external authorization server, the authorization server MUST include the `issuer_state` parameter from the credential offer in the access token. Otherwise it's not possible for Credo to correlate the authorization session to the offer session.
    
    The demo-openid contains an example with external authorization server, which can be used as reference. The Credo authorization server supports DPoP and PKCE.
    
    **Batch Issuance**
    The credential request to credential mapper has been updated to support multiple proofs, and also multiple credential instances. The client can now also handle batch issuance.
    
    **Presentation During Issuance**
    The presenation during issuance allows to request presentation using OID4VP before granting authorization for issuance of one or more credentials. This flow is automatically handled by the `resolveAuthorizationRequest` method on the oid4vci holder service.
    
    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    bee17c8 View commit details
    Browse the repository at this point in the history
  4. both token introspection and jwt flow working

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    4b9e845 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. feat: presentation during issuance server side

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    5545919 View commit details
    Browse the repository at this point in the history
  2. fix: loading of verifier module

    Signed-off-by: Timo Glastra <[email protected]>
    TimoGlastra committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    35c2c96 View commit details
    Browse the repository at this point in the history