-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#2946] Fix login for eHerkenning user with single vestiging #1535
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1535 +/- ##
========================================
Coverage 94.13% 94.13%
========================================
Files 1064 1064
Lines 39271 39276 +5
========================================
+ Hits 36967 36972 +5
Misses 2304 2304 ☔ View full report in Codecov by Sentry. |
09ee10a
to
f5ab67a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some contextual things, plus my comment about a change to the form copy, to avoid confusion about rechtspersoon versus "all branches".
I double checked this locally, and it looks like it's sending the correct values to both Mijn Aanvragen and Mijn Vragen, depending on the selection (either kvk or vestigingsnummer for Mijn Vragen, depending on selection, and either kvk or kvk + vestiging for Mijn Aanvragen).
- display the kvk branch selection and store vestigingsnummer in in session for companies with single vestigingsnummer
f5ab67a
to
7cfe067
Compare
The KVK branch selection view should be displayed, and the vestigingsnummer of the company should be stored in the session, for companies that have only a single vestiging (i.e. a hoofdvestiging but no nevenvestiging).
We currently skip the KVK branch selection view for companies with a single vestiging. The reason for doing this was a problem with endless redirects caused by our middleware (see https://taiga.maykinmedia.nl/project/open-inwoner/task/2000).
The issue now is that if a client logs in with a KVK nummer that has only one vestiging, the vestigingsnummer is not stored in the session. Consequently, any calls to APIS that make use of the KVK + vestigingsnummer will give the wrong results for this KVK number.
Reproducible with KVK number 90002490, which has only a hoofdvestiging.
Taiga: https://taiga.maykinmedia.nl/project/open-inwoner/task/2946