Skip to content

feat(auth): add OAuth2AuthCodeAuth and OAuth1Auth specs - #39

Merged
discreteds merged 5 commits into
developfrom
bugfix/profile-post-init-signature
May 5, 2026
Merged

feat(auth): add OAuth2AuthCodeAuth and OAuth1Auth specs#39
discreteds merged 5 commits into
developfrom
bugfix/profile-post-init-signature

Conversation

@discreteds

Copy link
Copy Markdown
Member

Summary

  • Aligns DescriptorProfile.post_init signature with base class
  • Adds OAuth2AuthCodeAuth spec — OAuth 2.0 Authorization Code grant with expiry tracking (promotes local def from mountainash-wearables)
  • Adds OAuth1Auth spec — OAuth 1.0a credentials and tokens for Garmin Health API and legacy integrations
  • Both exported from mountainash_settings.auth and top-level package

Test plan

  • All existing tests pass (no regressions)
  • New parametrized discriminator tests for both specs
  • Required field validation (ValidationError without them)
  • SecretStr wrapping verified
  • Optional fields default to None
  • Frozen immutability inherited from base
  • Ruff lint passes
  • No new mypy errors

🤖 Generated with Claude Code

discreteds and others added 5 commits May 5, 2026 22:50
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

@discreteds
discreteds merged commit 8963382 into develop May 5, 2026
4 checks passed
@discreteds
discreteds deleted the bugfix/profile-post-init-signature branch May 5, 2026 13:32
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