Skip to content

Add Swiss E-ID (swiyu) and OID4VP support#8

Open
loleg wants to merge 1 commit intomainfrom
swiyu-oid4vp-2331404629381370615
Open

Add Swiss E-ID (swiyu) and OID4VP support#8
loleg wants to merge 1 commit intomainfrom
swiyu-oid4vp-2331404629381370615

Conversation

@loleg
Copy link
Member

@loleg loleg commented Feb 24, 2026

This change adds support for the Swiss E-ID (swiyu) and OID4VP by making the generic OAuth2/OIDC implementation in Dribdat more flexible. Organizers can now configure custom authorization, token, and userinfo endpoints via environment variables, allowing Dribdat to interface with OIDC bridges that provide Swiss E-ID authentication. Two new OAuth types, swiyu and oid4vp, are added with branded login buttons.


PR created automatically by Jules for task 2331404629381370615 started by @loleg

- Modified `dribdat/sso/oauth2.py` to allow custom authorization and token URLs.
- Updated `dribdat/sso/ssoutils.py` to support `swiyu` and `oid4vp` types and use flexible endpoint configuration.
- Added login handlers for `swiyu` and `oid4vp` in `dribdat/public/auth.py`.
- Improved user info parsing in `oauth2_login` to handle common OIDC fields.
- Added login buttons for `swiyu` and `oid4vp` in `loginsso.html` with corresponding styles in `style.css`.
- Created `docs/SWIYU.md` with configuration instructions.

Co-authored-by: loleg <31819+loleg@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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