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

VB-2554 Add integration tests (Cypress / wiremock) for GOV.UK One Login #21

Merged
merged 6 commits into from
Sep 25, 2023

Conversation

tpmcgowan
Copy link
Contributor

@tpmcgowan tpmcgowan commented Sep 21, 2023

  • Add integration tests for GOV.UK One Login, to ensure the correct flow is followed (documented here).
  • Customisations to NPM scripts to set up the environment for testing (mocking OIDC discovery endpoint and setting test private key)
  • Various tweaks to get build working in CircleCI

* Not using PKSE
* Pass nonce to both passport.authenticate() calls
* No need to explicitly set 'state'; openid-client adds it
@tpmcgowan tpmcgowan force-pushed the vb-2554-govuk-one-login-integration-tests branch from d615b70 to 12aeab0 Compare September 21, 2023 20:49
@tpmcgowan tpmcgowan force-pushed the vb-2554-govuk-one-login-integration-tests branch from e239d24 to 8d1f153 Compare September 22, 2023 11:24
package.json Show resolved Hide resolved
@tpmcgowan tpmcgowan marked this pull request as ready for review September 22, 2023 12:52
psoleckimoj
psoleckimoj previously approved these changes Sep 22, 2023
Copy link
Contributor

@psoleckimoj psoleckimoj left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@psoleckimoj psoleckimoj left a comment

Choose a reason for hiding this comment

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

LGTM!

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