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

ThePalaceProject / web-patron / 27374726958
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.11.0
DEFAULT BRANCH: main
Ran 11 Jun 2026 08:18PM UTC
Jobs 1
Files 14
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 27374726958.1 11 Jun 2026 08:18PM UTC 14
88.01
GitHub Action Run
Source Files on build 27374726958
  • Tree
  • List 14
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 997b565c on github
  • Prev Build on main (#27372724281)
  • Delete
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