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: migrate isSpcpAuthenticated to TypeScript #666

Merged
merged 6 commits into from
Nov 19, 2020

Conversation

mantariksh
Copy link
Contributor

Builds on #665

This PR migrates the isSpcpAuthenticated middleware to TypeScript by taking advantage of the extractJwtPayload function implemented in #664. The old controller tests were removed and new ones have not been added yet, since the isSpcpAuthenticated middleware will soon be subsumed under new controllers for the Submissions endpoints.

Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise!

@mantariksh mantariksh changed the base branch from test/ts-spcp-add to ref/ts-spcp November 19, 2020 01:35
@mantariksh mantariksh merged commit 488a7fb into ref/ts-spcp Nov 19, 2020
mantariksh added a commit that referenced this pull request Nov 19, 2020
* ref: add mapRouteError case for VerifyJwtError

* ref: add mapRouteError case for InvalidAuthType

* ref: implement isSpcpAuthenticated

* ref: remove old isSpcpAuthenticated

* ref: use new isSpcpAuthenticated

* test: remove unused tests
mantariksh added a commit that referenced this pull request Nov 23, 2020
* ref: add mapRouteError case for VerifyJwtError

* ref: add mapRouteError case for InvalidAuthType

* ref: implement isSpcpAuthenticated

* ref: remove old isSpcpAuthenticated

* ref: use new isSpcpAuthenticated

* test: remove unused tests
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-is 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.

2 participants