Skip to content

Oauth integration - #4

Merged
JannisNoordmann merged 7 commits into
mainfrom
oauth-integration
Aug 4, 2026
Merged

Oauth integration#4
JannisNoordmann merged 7 commits into
mainfrom
oauth-integration

Conversation

@JannisNoordmann

Copy link
Copy Markdown
Collaborator

This PR introduces comprehensive OAuth 2.0 support through the new OAuthHelper and improves the repository's security, fault-tolerance, and internal test coverage.

Key changes include:

  • OAuth 2.0 Implementation: Added a fully-fledged OAuthHelper providing methods to build authorization URLs, exchange codes, auto-refresh tokens when encountering HTTP 401, and revoke tokens locally as well as remotely. Includes state checking against CSRF.
  • Decoupled Token Storage: Introduced TokenStorageInterface (with a default MemoryTokenStorage) so multi-tenant applications can persist OAuth tokens on a per-user basis (e.g., in a database).
  • Coverage & Testing: Improving coverage
  • Documentation Refactoring: Rewrite of the [README.md] to cleanly separate Static Tokens vs OAuth 2.0 Flows. Added detailed examples for CSRF-protected Callbacks and properly injecting DB-based TokenStorageInterfaces.

@JannisNoordmann JannisNoordmann self-assigned this Aug 4, 2026
@JannisNoordmann
JannisNoordmann merged commit 576a9e6 into main Aug 4, 2026
3 checks passed
@JannisNoordmann
JannisNoordmann deleted the oauth-integration branch August 4, 2026 12:12
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