Skip to content

Rename InsufficientScope to MissingScopeException - #37

Merged
tmgbedu merged 1 commit into
mainfrom
task/rename-missing-scope-exception
Oct 16, 2026
Merged

tmgbedu merged 1 commit into
mainfrom
task/rename-missing-scope-exception

Conversation

@claude-tmgbedu

Copy link
Copy Markdown
Contributor

Renames the InsufficientScope exception to MissingScopeException across the package, tests and changelog.

  • Class keeps the same base (AuthError), docstring and status_code=403.
  • Wire code stays error='insufficient_scope' (RFC 6750).
  • InsufficientScope = MissingScopeException stays exported as a deprecated alias for 0.6.x users.
  • dependencies.py raises the new name; __init__.py exports both names.
  • Adds a small test covering the wire contract and alias identity.
  • CHANGELOG entry under Unreleased with a migration note.

Full suite: 413 passed, 92 skipped (pre-existing skips).

- InsufficientScope becomes MissingScopeException (old names stay as aliases)
- Exception classes take an Exception suffix; AuthError is now AuthException
- InvalidSessionException becomes AuthenticationException
- Bad password on the password grant raises InvalidCredentialsException
- A request with no credential raises AuthenticationException
- Tests and docs follow the new names
@claude-tmgbedu
claude-tmgbedu force-pushed the task/rename-missing-scope-exception branch from 2ba074a to b774251 Compare October 16, 2026 20:47
@tmgbedu
tmgbedu merged commit 8f548f0 into main Oct 16, 2026
5 checks passed
@tmgbedu
tmgbedu deleted the task/rename-missing-scope-exception branch October 16, 2026 20:57
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