OpenConext / OpenConext/Stepup-Middleware

Gateway institution configuration is not always present

Open
#493 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Imported middleware needs discussion
Dominant language
PHP
Stars
3
Forks
2
Avg merge
2d 9h
Merged PRs (30d)
2

Description

This issue is imported from pivotal - Originaly created at Aug 15, 2023 by Michiel Kodde

Scenario
Given: the SSO on 2FA feature is installed on an existing installation.
And: I run the migration that creates the Gateway projection schema
And: I configure one of the institutions to use SSO on 2FA
Then: the gateway institution configuration should be updated to reflect the configuration value

Problem
However: the projector does not create the projection row if it does not exist yet.

Solution
The best solution would be to run an event replay. Ensuring all institutions are present in the GW institution configuration projection.
The next best solution is to make the projector aware of the possibility, an institution is not yet projected. And let it create the row on the fly.

Contributor guide

No contributing guide indexed for this repository

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 gateway institution configuration projector, the migration that creates its projection schema, and the event replay entry point. Trace what happens for an existing institution configured for SSO on 2FA when no projection row exists; done when the projection row and configuration are updated after migration and configuration processing.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.