Skip to content

feat: oauth startup check#230

Open
RobinKnipe wants to merge 8 commits into
mainfrom
feat/oauth-startup-check
Open

feat: oauth startup check#230
RobinKnipe wants to merge 8 commits into
mainfrom
feat/oauth-startup-check

Conversation

@RobinKnipe

@RobinKnipe RobinKnipe commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Remove the pointless and overly complicated Mongo DB support from the JWKS auth code.
Add a startup health check to confirm the auth code & config is correctly setup.

This resolves Jira ticket: FCPDAL-262

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
99.14% (+0.13% 🔼)
1041/1050
🟢 Branches
97.36% (+0.3% 🔼)
405/416
🟢 Functions
99.69% (+0% 🔼)
323/324
🟢 Lines
99.11% (+0.13% 🔼)
1006/1015
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / JWKS.js
100% 100% 100% 100%
🟢
... / rural-payments.js
100% 100% 100% 100%
🟢
... / jwks.js
100% 100% 100% 100%

Test suite run success

578 tests passing in 67 suites.

Report generated by 🧪jest coverage report action from 069acfc

@RobinKnipe
RobinKnipe force-pushed the feat/oauth-startup-check branch 3 times, most recently from d2494ce to dfe3e70 Compare June 23, 2026 12:07
@RobinKnipe
RobinKnipe force-pushed the feat/oauth-startup-check branch from dfe3e70 to d0f3430 Compare July 16, 2026 17:51
Comment thread app/utils/health/jwks.js
try {
logger.info(`Fetching JWKS keys from ${config.get('oidc.jwksURI')}`)
const res = await fetch(config.get('oidc.jwksURI'))
if (!res.ok) {

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.

A few coverage-related warnings below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Covered 👍

@RobinKnipe
RobinKnipe force-pushed the feat/oauth-startup-check branch from d0f3430 to ca1a2ac Compare July 17, 2026 15:49
@RobinKnipe
RobinKnipe force-pushed the feat/oauth-startup-check branch from ca1a2ac to 6f4032f Compare July 17, 2026 16:59
@RobinKnipe
RobinKnipe force-pushed the feat/oauth-startup-check branch from 6f4032f to 069acfc Compare July 17, 2026 17:01
@sonarqubecloud

Copy link
Copy Markdown

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