Skip to content

Conversation

@Sumeet213
Copy link
Contributor

#260

Summary

Add support for Notion's OAuth 2.0 endpoints to enable public integrations
and token management.

Changes

  • Added OAuthEndpoint class with three methods:
    • token() - Exchange authorization codes or refresh tokens
    • introspect() - Validate OAuth tokens
    • revoke() - Revoke OAuth tokens
  • Extended authentication to support Basic auth for OAuth client credentials
  • Added VCR tests for introspect/revoke and mock tests for token exchange

@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7762013) to head (6892cab).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #301      +/-   ##
===========================================
+ Coverage   99.51%   100.00%   +0.48%     
===========================================
  Files           7         7              
  Lines         411       424      +13     
===========================================
+ Hits          409       424      +15     
+ Misses          2         0       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Sumeet213 Sumeet213 marked this pull request as draft November 5, 2025 05:31
@Sumeet213 Sumeet213 force-pushed the feature/add-oauth-endpoints branch 2 times, most recently from 408023f to 54184aa Compare November 5, 2025 05:54
@Sumeet213 Sumeet213 force-pushed the feature/add-oauth-endpoints branch from 54184aa to 7c4b89e Compare November 5, 2025 06:00
@Sumeet213 Sumeet213 marked this pull request as ready for review November 5, 2025 06:12
Copy link
Owner

@ramnes ramnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, just a few minor points to fix. Thanks!

@ramnes ramnes merged commit 0fc3fca into ramnes:main Nov 14, 2025
9 checks passed
@ramnes
Copy link
Owner

ramnes commented Nov 14, 2025

Thanks @Sumeet213!

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.

3 participants