-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migration corppass to oidc (#4248)
* chore: rename cache * chore: rename utils, types and errors files * chore: separate SpcpOidcBaseClient and SpOidcClient * chore: rename sp.oidc.client to spcp.oidc.client * feat: add cp oidc client * chore: add corppass oidc env vars * chore: update docs and client types * chore: add cp idtoken typeguard * feat: SpcpOidcServiceClass * chore: update spcp service tests * chore: rename spcp.oidc.service and update imports * chore: add separate cp oidc test keys * chore: add CP tests for spcp.oidc.service * chore: update getRedirectTargetSpcpOidc * feat: createJWTPayload in spcp.oidc.service * chore: handleSpcpOidcLogin to include CP, update tests * feat: add cp login route * chore: update email, encrypt, verification controller, update tests * fix: add correct authType to express handler * chore: different esrvcID param in auth url for corppass oidc * chore: remove cp e2e tests * chore: add spcp oidc controller tests * chore: add /login route integration tests * chore: use axios to post to token endpoint in order to include typ header * chore: update tests * refactor: use createJWT to create client assertion * fix: typo CilentCache > ClientCache * [WIP] ref: OIDCClient classes (#4516) * refactor: Refactor OIDCClient classes * ref: first attempt at splitting spcp.oidc.service * ref: split oidc.service into multiple files * ref: change instantiation responsibilities * ref: use the split classes * ref: set oidcProps type correctly in child classes * ref: remove unecessary overwritten method getClient() * chore: add function return type * chore: clean up some typings * chore: clean up spcp oidc client abstract class * chore: getExtraTokenFields non optional * chore: update spcp.oidc.client tests * chore: add tests for spcp.oidc.service.sp * fix: cookieDomain should be non-optional for CpOidcProps * chore: add tests for spcp.oidc.service.cp * chore: use conditional types for getOidcService * chore: update references to oidc service in codebase * chore: update tests * chore: put some oidc test constants in separate file * fix: remove unnecessary getSigningKey in exchangeAuthCode * ref: restore polymorphic code for oidc controller * chore: fix typing for createJWTPayload * chore: improve docs * fix: continue using abstract class for createJwtPayload in order to preserve attribute check for cp * chore: update tests Co-authored-by: tshuli <[email protected]> * feat: allow saml keys for cp forms * ref(oidc.service): set client and props as abstract properties Co-authored-by: Timothee Groleau <[email protected]>
- Loading branch information
Showing
66 changed files
with
7,182 additions
and
2,587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.