-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: MyInfo over sgID backend #6337
Conversation
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.
nice work, some clarifying questions!
Thanks for the extremely thorough and insightful review Shu Li. I tried to address it. Now, submitting SGID-MyInfo forms don't log out an already logged in SGID-Auth form :). |
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.
Nice work and thanks for the quick turnaround!
Went through again in more detail and have some further comments for consideration :)
src/app/modules/submission/encrypt-submission/encrypt-submission.controller.ts
Show resolved
Hide resolved
Couple of minor comments, but lgtm otherwise! |
@timotheeg would be good if you could have another look through before this is merged in |
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.
Looking good KenJin! 🥳
I only have some super very comments, so I think it's pretty much ready to go! 💪
And I will try to do a second pass tomorrow morning to make sure I understand correctly all the typing magic with the generics (I'm not very good at reading generics 😅)
meta, | ||
error: jwtResult.error, | ||
}) | ||
res.cookie('isLoginError', true) |
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.
/notYourPR-DontChangeAnything-JustNoting: putting an error flag in a client cookie feels a bit dirty 😅 ... Ideally, we should have sessions for respondent, and the error details should be set and retrieved from that. The client should not be able to drive error handling behaviour from cookies
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.
Yeah unfortunately that's how the existing code does this :(.
Thanks for the thorough review Tim! |
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
Problem
Retrieving MyInfo data over sgID is currently not supported.
Closes #6323
Solution
Breaking Changes
Features:
Before & After Screenshots
(We want no difference, since it's disabled on the frontend).
BEFORE:
AFTER:
Tests
I've added tests to the sgID adapter to make sure it works. It should automatically be run as part of the existing test suite.