Skip to content
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

refactor: move passThroughSpcp business logic into service #667

Merged
merged 5 commits into from
Nov 19, 2020

Conversation

mantariksh
Copy link
Contributor

The passThroughSpcp function serves to populate mock SingPass and CorpPass authentication info when admins submit the form in the preview. This functionality will eventually be subsumed under a single controller function, so this PR migrates the business logic into a util which can easily be called by that controller in future.

src/app/modules/spcp/spcp.util.ts Outdated Show resolved Hide resolved
src/app/modules/spcp/spcp.util.ts Outdated Show resolved Hide resolved
@mantariksh mantariksh changed the title refactor: move passThroughSpcp business logic into util refactor: move passThroughSpcp business logic into service Nov 19, 2020
@mantariksh mantariksh merged this pull request into ref/ts-spcp Nov 19, 2020
mantariksh added a commit that referenced this pull request Nov 23, 2020
* refactor: standardise usage of getUniqueMyInfoAttrs (#636)

* ref: migrate /spcp/redirect endpoint to TypeScript (#635)

* refactor: migrate /spcp/validate to TypeScript (#656)

* refactor: migrate addSpcpSessionInfo to TypeScript (#664)

* refactor: migrate isSpcpAuthenticated to TypeScript (#666)

* refactor: create addLoginFromForm static method (#679)

* refactor: move passThroughSpcp business logic into service (#667)

* refactor: migrate SPCP /login endpoints to TypeScript (#680)

* refactor: migrate appendVerifiedSpcpResponses to TypeScript (#693)

* docs: add docs for all new functions (#696)

* test: add tests for SPCP login endpoints (#695)

* feat: log login HTML

* fix: change title check to null-only
@liangyuanruo liangyuanruo deleted the ref/ts-spcp-pass branch December 22, 2020 04:12
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.

3 participants