Skip to content

fix/oid-vc: Add DSP enable flag and fix OpenID Connect VC support#459

Open
Mortega5 wants to merge 3 commits into
FIWARE-TMForum:masterfrom
Mortega5:fix/oid-vc
Open

fix/oid-vc: Add DSP enable flag and fix OpenID Connect VC support#459
Mortega5 wants to merge 3 commits into
FIWARE-TMForum:masterfrom
Mortega5:fix/oid-vc

Conversation

@Mortega5

Copy link
Copy Markdown
Contributor

Summary

This MR includes two improvements to the OpenID Connect authentication flow with Verifiable Credentials (VC) support:

  1. Add DSP enable flag (BAE_LP_DSP_ENABLED)

Introduces a new config.dspEnabled boolean (default false) controlled by the BAE_LP_DSP_ENABLED environment variable. The flag is also exposed via the /config endpoint so the frontend can consume it.

  1. Fix OpenID Connect profile building with VC
  • Fixes VerifiableCredential parsing to handle JWTs whose payload contains a credentialSubject directly (previously only verifiableCredential and vc wrappers were handled).
  • Moves OIDC strategy to use tokenSet.claims() instead of userinfo for profile extraction, enabling VC data embedded in the ID token to be picked up correctly.
  • Adds a custom userProfile function that verifies the access token signature using the issuer's JWKS and extracts the profile from its payload.
  • Adds optional nonce support in the OIDC flow via the BAE_LP_OAUTH2_NONCE environment variable (default false).

Environment variables added

Variable Default Description
BAE_LP_DSP_ENABLED false Enables DSP features in the frontend
BAE_LP_OAUTH2_NONCE false Enables nonce generation in the OIDC authorization request

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant