Skip to content

Add device code login integration test suite - #106

Merged
petrsnd merged 4 commits into
OneIdentity:mainfrom
petrsnd:feature/device-code-login
Jun 30, 2026
Merged

petrsnd merged 4 commits into
OneIdentity:mainfrom
petrsnd:feature/device-code-login

Conversation

@petrsnd

@petrsnd petrsnd commented Jun 30, 2026

Copy link
Copy Markdown
Member

Adds a device-code login integration test and generalizes the test framework grant-type helpers.

What''s included

  • suite-device-code.sh integration suite (grant-type toggle, disabled-grant error, verification URL received).
  • Generalized grant-type helpers in framework.sh (beyond Resource Owner), with the prior Resource-Owner helpers retained as wrappers.

Tests

  • Suite passes; full suite green (12 suites, 287 tests).

Version bumped to 8.3.2 (test-only → micro).

petrsnd added 3 commits June 30, 2026 14:12
Add generic enable/disable, save, and restore helpers for any OAuth2 grant type while keeping the Resource Owner wrappers used by the test runner.
Cover the disabled-grant negative case and the enabled baseline that surfaces the verification URL and user code, with an opt-in scripted approval path and grant-type cleanup.
Patch release for the device code test suite additions.
@petrsnd
petrsnd requested a review from a team as a code owner June 30, 2026 21:59
suite_cleanup restores the captured grant-type set but does not run if the operator interrupts mid-execute, which could leave DeviceCode disabled. Arm an INT/TERM trap in setup to run the restore, disarmed in cleanup for the normal path.
@petrsnd
petrsnd merged commit a233e2c into OneIdentity:main Jun 30, 2026
2 checks passed
@petrsnd
petrsnd deleted the feature/device-code-login branch June 30, 2026 23:15
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.

1 participant