Skip to main content

Module social_github

Module social_github 

Source
Expand description

GitHub SocialProvider implementation.

§Base URL injection for tests

Two base URLs are hardcoded in the public new() constructor:

  • oauth_base_urlhttps://github.com/login/oauth (token exchange)
  • api_base_urlhttps://api.github.com (user + emails lookup)

Tests that need to point at a wiremock server use the crate-private new_with_base_urls() constructor instead. This avoids the OnceLock override pattern which is parallel-test-hostile.

Structs§

GitHubSocialProvider
GitHub OAuth 2.0 social provider.