openwallet-foundation / openwallet-foundation/acapy-plugins

OID4VC: Decouple authorization server from issuance

Open
#1,735 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10
Forks
47
Avg merge
13h 22m
Merged PRs (30d)
12

Description

Currently the /token endpoint, which is an authorization server function, is included as part of the issuer functionality - monolithic design. Decoupling authorization from issuance will support the following goals:

  1. Alignment with OAuth2 design patterns.
  2. Enhance the security of the solution.
  3. Simplify the development of additional authentication options (see below).
  4. Lay the groundwork to enable the integration of the issuer to third party authorization servers.

The python library authlib can be used to help with the development of the standalone authorized server - https://github.com/authlib/authlib. An alternative possibility is https://github.com/oauthlib/oauthlib

The following core features will need to be developed in support of the oid4vci pre authorized flow - base functionality.

  • Pre-authorized code grant
  • Token and refresh token (supported by authlib)

Future development tasks can then extend the functionality of the authorization server.

  • OAuth 2.0 Demonstrating Proof of Possession (DPoP): RFC 9449. (open issue and tagged as a feature for authlib)
  • OAuth 2.0 Attestation-Based Client Authentication IETF DRAFT
  • OAuth 2.0 Pushed Authorization Requests RFC: 9126 (open issue and tagged as a feature for authlib)
  • OID4VCI authorization flow (supported by authlib)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the issuer implementation of the /token endpoint and reviewing how authorization and issuance are currently coupled. Define the boundaries for a standalone authorization server, then verify support for the OID4VCI pre-authorized code grant, token, and refresh-token flow; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.