Skip to content

1283 authenticate write actions - #1306

Merged
gibahjoe merged 9 commits into
mainfrom
1283-authenticate-write-actions
Nov 26, 2026
Merged

gibahjoe merged 9 commits into
mainfrom
1283-authenticate-write-actions

Conversation

@gibahjoe

Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Adds Internal Access sign-in to Check and Submit, requiring a verified gov.uk email. Includes sign-out, verified contact-email prefill, authenticated Async requests and a local authentication bypass.

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Authentication checks passed in Chromium, Firefox and WebKit. Unit tests and lint passed.

Added/updated tests?

  • Yes
  • No
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

[optional] Are there any dependencies on other PRs or Work?

Requires Internal Access client registration and the Async API’s Submit JWT authentication support.

@gibahjoe gibahjoe linked an issue Nov 25, 2026 that may be closed by this pull request
@gibahjoe
gibahjoe deployed to development November 25, 2026 16:37 — with GitHub Actions Active
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.77% 3411 / 4330
🔵 Statements 78.12% 3689 / 4722
🔵 Functions 73.76% 700 / 949
🔵 Branches 72.66% 1874 / 2579
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
config/index.js 100% 60% 100% 100%
scripts/setup-local-auth.js 87.03% 85% 100% 89.58% 15, 25, 79-83
src/controllers/CheckAnswersController.js 88.97% 86.66% 78.57% 90.16% 19-22, 26-32, 124, 208-212, 239, 251-256, 262-263, 281-285
src/controllers/lpaDetailsController.js 95.83% 87.5% 100% 95.45% 31
src/middleware/auth.middleware.js 98.14% 92.72% 100% 97.77% 44
src/routes/auth.js 95.71% 81.08% 100% 96.55% 33-34, 47
src/routes/cookies.js 93.75% 83.33% 50% 93.75% 8-11
src/routes/roadmap.js 100% 100% 100% 100%
src/serverSetup/sentry.js 84.61% 53.57% 50% 84.37% 47-58, 65-66
src/serverSetup/session.js 89.47% 78.94% 75% 100% 12, 20
src/services/asyncAuth.js 96.29% 92.3% 100% 100% 19
src/services/oidc.js 86% 87.17% 88.88% 94.73% 20, 24, 26, 41, 64, 79
src/services/userIdentity.js 100% 100% 100% 100%
Generated in workflow #1698 for commit 585a92c by the Vitest Coverage Report Action

@gibahjoe
gibahjoe deployed to development November 25, 2026 16:58 — with GitHub Actions Active
…d update route handling

refactor: simplify route rendering by removing nunjucks rendering in favor of express render
test: add tests for optional user access and public page visibility
@gibahjoe gibahjoe linked an issue Nov 26, 2026 that may be closed by this pull request
@gibahjoe
gibahjoe deployed to development November 26, 2026 13:37 — with GitHub Actions Active

@pooleycodes pooleycodes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gibahjoe
gibahjoe merged commit 8602ba9 into main Nov 26, 2026
2 of 3 checks passed
@gibahjoe
gibahjoe deleted the 1283-authenticate-write-actions branch November 26, 2026 14:43

This branch was successfully deployed

No deployments
development — 585a92cf Deployed Nov 26, 2026 by gibahjoe via run-tests / test #3049
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.

Make the service name consistent Introduce authentication for all "write" actions

2 participants