• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Recached

ThePalaceProject / web-patron
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.11.0
DEFAULT BRANCH: main
Repo Added 22 Jul 2021 01:05AM UTC
Token NYLsywhVCNMt2ofO8m0o4lOLYk8jtzujj regen
Build 359 Last
Files 14
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH refs/tags/v0.11.0
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • PP-1631
  • PP-2191
  • PP-2191-update
  • PP-2240
  • PP-2243
  • PP-2283
  • PP-2310
  • PP-2463
  • PP-2666
  • PP-3296
  • PP-3655
  • PP-3680
  • PP-4041
  • PP-4048
  • PP-954
  • app-store-link
  • audiobook-support
  • bearer-token
  • bugfix/404-on-first-page-load
  • bugfix/authenticate-with-correct-href
  • bugfix/book-url-containing-http
  • bugfix/cancelled-failed-redirect-login
  • bugfix/containers-not-running
  • bugfix/include-auth-doc-url-for-missing-catalog-root
  • bugfix/missing-login-error-message
  • bugfix/omit-unimplemented-basictoken-auth
  • bugfix/saml-login-faiure-infinite-loop
  • bugfix/too-much-registry-fetching
  • bugfix/webpack-build-error
  • chore/activate-runtime-config
  • chore/bugsnag-and-gtm-via-env
  • chore/ci-improvements
  • chore/clean-up-lint-issues
  • chore/dockerfile-cmd-exec-form
  • chore/dynamic-registry-support
  • chore/handle-redirect-auth-switching
  • chore/improve-cpw-startup
  • chore/pp-4083-reload-static-libraries
  • chore/remove-axisnow-decryptor
  • chore/remove-mybooks-page-signout-button
  • chore/request-logging
  • chore/run-ci-checks-in-container
  • chore/runtime-config-module
  • chore/server-side-registry-foundation
  • chore/trigger-config-load-on-startup
  • chore/update-dependencies
  • chore/update-libraries-config
  • chore/update-packages
  • chore/update-release-config
  • chore/update-some-dependencies
  • chore/use-camel-case-config
  • chore/use-central-jira-release-sync-action
  • chore/warnings-for-saml-signout
  • dependabot/npm_and_yarn/babel/runtime-7.27.0
  • dependabot/npm_and_yarn/brace-expansion-1.1.12
  • dependabot/npm_and_yarn/brace-expansion-1.1.13
  • dependabot/npm_and_yarn/cross-fetch-3.1.5
  • dependabot/npm_and_yarn/decode-uri-component-0.2.2
  • dependabot/npm_and_yarn/dompurify-3.2.4
  • dependabot/npm_and_yarn/dompurify-3.3.2
  • dependabot/npm_and_yarn/dompurify-3.4.0
  • dependabot/npm_and_yarn/express-4.18.2
  • dependabot/npm_and_yarn/fast-uri-3.1.2
  • dependabot/npm_and_yarn/flatted-3.4.2
  • dependabot/npm_and_yarn/js-cookie-3.0.7
  • dependabot/npm_and_yarn/jsdom-16.5.0
  • dependabot/npm_and_yarn/json5-1.0.2
  • dependabot/npm_and_yarn/lodash-4.17.23
  • dependabot/npm_and_yarn/lodash-4.18.1
  • dependabot/npm_and_yarn/lodash-es-4.17.21
  • dependabot/npm_and_yarn/minimatch-3.1.5
  • dependabot/npm_and_yarn/minimist-1.2.6
  • dependabot/npm_and_yarn/minimist-1.2.8
  • dependabot/npm_and_yarn/moment-2.29.2
  • dependabot/npm_and_yarn/moment-2.29.4
  • dependabot/npm_and_yarn/multi-046d9124cb
  • dependabot/npm_and_yarn/multi-0d13b2d87f
  • dependabot/npm_and_yarn/multi-1576d89741
  • dependabot/npm_and_yarn/multi-75e6bc5210
  • dependabot/npm_and_yarn/multi-920648a0a8
  • dependabot/npm_and_yarn/multi-b82bf31249
  • dependabot/npm_and_yarn/multi-bf05dc1ecf
  • dependabot/npm_and_yarn/next-15.2.3
  • dependabot/npm_and_yarn/next-15.2.4
  • dependabot/npm_and_yarn/next-15.4.10
  • dependabot/npm_and_yarn/next-15.4.7
  • dependabot/npm_and_yarn/next-15.4.8
  • dependabot/npm_and_yarn/next-15.4.9
  • dependabot/npm_and_yarn/next-15.5.10
  • dependabot/npm_and_yarn/next-15.5.14
  • dependabot/npm_and_yarn/next-15.5.15
  • dependabot/npm_and_yarn/next-15.5.18
  • dependabot/npm_and_yarn/next-16.1.5
  • dependabot/npm_and_yarn/next-16.1.7
  • dependabot/npm_and_yarn/node-fetch-2.6.7
  • dependabot/npm_and_yarn/qs-6.14.2
  • dependabot/npm_and_yarn/qs-6.5.3
  • dependabot/npm_and_yarn/storybook-8.6.15
  • dependabot/npm_and_yarn/storybook-8.6.17
  • dependabot/npm_and_yarn/terser-4.8.1
  • dependabot/npm_and_yarn/tmp-0.2.4
  • dependabot/npm_and_yarn/tmp-0.2.7
  • dependabot/npm_and_yarn/urijs-1.19.10
  • dependabot/npm_and_yarn/urijs-1.19.11
  • dependabot/npm_and_yarn/urijs-1.19.8
  • dependabot/npm_and_yarn/urijs-1.19.9
  • feature/PP-4097-add-jira-release-sync-workflow
  • feature/catalog-home-button
  • feature/configurable-default-media-support
  • feature/configuration-enhancements
  • feature/heuristic-slug-library-shortname
  • feature/home-page-link-titles
  • feature/oidc-auth-handler
  • feature/oidc-logout-support
  • feature/patron-dropdown
  • feature/preview-button
  • feature/reset-pw-link
  • feature/saml-logout-support
  • feature/sort-library-list-by-name
  • feature/suppress-unsupported-auth-mechanisms
  • feature/upgrade-to-changelog-enforcer-3.3.0
  • feature/use-new-gh-actions-environment-files
  • feature/version-info
  • main
  • no-password-login
  • play-store-link
  • refactor/prominent-web-reader-button
  • refs/tags/test-release
  • refs/tags/test-release-2
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.10.0
  • refs/tags/v0.11.0
  • refs/tags/v0.2.1
  • refs/tags/v0.3.0
  • refs/tags/v0.4.0
  • refs/tags/v0.4.1
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • refs/tags/v0.9.0
  • restore-branding
  • revert-branding
  • search-all-langs
  • sync-with-nypl
  • test-pr
  • update-actions
  • update-logo
  • upgrade_next
  • working/upgrade-without-legacy-peer-deps

11 Jun 2026 07:46PM UTC coverage: 88.012%. Remained the same
27374726958

push

github

web-flow
Support alternate OIDC auth flow via "prompt" param (PP-4429) (#146)

## Description

> [!NOTE]
> The feature described here is basically equivalent to a regular sign
in attempt in the absence of [a supporting change in the Palace Manager
(PR 3452)](https://github.com/ThePalaceProject/circulation/pull/3452).

This adds a "Use a different account" escape hatch to the OIDC error and
cancel screens. Clicking it retries authentication with the
`prompt=select_account` query parameter added to the authorization
request URL, which instructs the OIDC provider to show its account
chooser regardless of any existing session. The normal sign-in flow is
unaffected.

<img width="331" height="329" alt="image"
src="https://github.com/user-attachments/assets/149bbd70-dbb3-46d8-8157-5fb998fcd24d"
/>


Also fixes the OIDC redirect URL, now correctly constructing it using
`URL`/`searchParams` rather than string concatenation.

## Motivation and Context

When a library uses OIDC for sign-in (e.g. Google SSO), the client
auto-redirects to the identity provider. If the user is already signed
into a non-permitted account, authentication fails and they land on the
error screen with only a "Try Again" button — which retries the same
redirect and fails again.

[Jira PP-4429]

## How Has This Been Tested?

- New tests cover the "Use a different account" button appearing in both
the error and cancel states, and verify that clicking it navigates to
the correct URL with `prompt=select_account`.
- Existing OIDC handler tests updated to reflect the corrected URL
format (`?` separator instead of `&`).
- Manual local testing to ensure that the `prompt=select_account` query
param makes it through to the Palace Manager.
- All new and existing tests passed.
- CI tests and checks pass.

## Checklist:

- N/A - I have updated the documentation accordingly.
- [x] All new and existing tests passed.

223 of 258 branches covered (86.43%)

Branch coverage included in aggregate %.

357 of 401 relevant lines covered (89.03%)

31.6 hits per line

Relevant lines Covered
Build:
Build:
401 RELEVANT LINES 357 COVERED LINES
31.6 HITS PER LINE
Source Files on main
  • Tree
  • List 14
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27374726958 refs/tags/v0.11.0 Support alternate OIDC auth flow via "prompt" param (PP-4429) (#146) ## Description > [!NOTE] > The feature described here is basically equivalent to a regular sign in attempt in the absence of [a supporting change in the Palace Manager (PR 3452... push 11 Jun 2026 08:18PM UTC web-flow github
88.01
27373069376 main Support alternate OIDC auth flow via "prompt" param (PP-4429) (#146) ## Description > [!NOTE] > The feature described here is basically equivalent to a regular sign in attempt in the absence of [a supporting change in the Palace Manager (PR 3452... push 11 Jun 2026 07:48PM UTC web-flow github
88.01
27372724281 main Update visual prominence of external reader buttons (PP-4355) (#145) ## Description <!--- Describe your changes --> Buttons that open external web readers are now considered as primary actions and are also surfaced on the "My Books" page. The ne... push 11 Jun 2026 07:42PM UTC web-flow github
88.01
27372348596 refactor/prominent-web-reader-button updated Button snapshot Pull #145 11 Jun 2026 07:35PM UTC PoorBillyPilgrim github
88.01
27311493141 chore/handle-redirect-auth-switching Support alternate OIDC auth flow via "prompt" param (PP-4429) push 10 Jun 2026 10:53PM UTC tdilauro github
88.01
27305596760 refactor/prominent-web-reader-button some cleanup push 10 Jun 2026 08:54PM UTC PoorBillyPilgrim github
88.01
27305195033 refactor/prominent-web-reader-button Moved fulfillable book status text to FulfillmentCard to match new designs from Alissa push 10 Jun 2026 08:47PM UTC PoorBillyPilgrim github
88.01
27304269733 main Show forgot password link (PP-4418) (#144) ## Description <!--- Describe your changes --> Add a "Forgot your password?" link to the CPW sign-in screen, matching the existing behavior in the Palace iOS and Android apps. <img width="362" height="... push 10 Jun 2026 08:30PM UTC web-flow github
88.01
27238065433 feature/reset-pw-link swapped __blank for _blank in ExternalLink component * __blank has no standardized meaning in the HTML spec, so opting for _blank is more appropriate push 09 Jun 2026 09:50PM UTC PoorBillyPilgrim github
88.01
27236601029 feature/reset-pw-link show forgot password link if present for library push 09 Jun 2026 09:22PM UTC PoorBillyPilgrim github
88.01
See All Builds (337)

Badge your Repo: web-patron

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc