Skip to content

Raise a specific XPM authentication error - #82

Merged
chrisrbnelson merged 3 commits into
masterfrom
codex/authentication-unsuccessful-error
Jul 27, 2026
Merged

Raise a specific XPM authentication error#82
chrisrbnelson merged 3 commits into
masterfrom
codex/authentication-unsuccessful-error

Conversation

@chrisrbnelson

Copy link
Copy Markdown
Member

What changed

  • add XpmRuby::AuthenticationUnsuccessful as a subtype of XpmRuby::Forbidden
  • raise it when a 403 response has the exact AuthenticationUnsuccessful detail
  • keep every other 403 as the generic XpmRuby::Forbidden

Why

Consumers need to apply a dedicated retry and exhaustion policy to invalid XPM tenant authorisation without suppressing permission, edge, or other generic 403 failures.

Validation

  • full RSpec suite: 93 examples, 0 failures
  • Ruby syntax checks
  • diff whitespace check

Local RuboCop could not run because the repository pins an older RuboCop configuration that the workspace version no longer accepts; GitHub Actions will run the repository-pinned toolchain.

Co-authored-by: ChatGPT Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@chrisrbnelson
chrisrbnelson marked this pull request as ready for review July 27, 2026 04:26
chrisrbnelson and others added 2 commits July 27, 2026 14:37
Co-authored-by: ChatGPT Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Co-authored-by: ChatGPT Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@chrisrbnelson
chrisrbnelson merged commit a105032 into master Jul 27, 2026
1 check failed
@chrisrbnelson
chrisrbnelson deleted the codex/authentication-unsuccessful-error branch July 27, 2026 04:39
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