1 unstable release
| 0.1.0 | Jan 31, 2026 |
|---|
#1336 in Authentication
Used in authly-axum
27KB
297 lines
authly-providers-github
GitHub OAuth2 provider for authly-rs.
This crate provides a concrete implementation of the OAuthProvider trait for GitHub, allowing easy integration of GitHub authentication into your application.
Features
- Authorization Code exchange for GitHub identities.
- Token refresh support.
- Token revocation support.
Usage
Add this to your Cargo.toml:
[dependencies]
authly-providers-github = "0.1.0"
Example
use authly_providers_github::GitHubProvider;
let provider = GitHubProvider::new(
"CLIENT_ID".to_string(),
"CLIENT_SECRET".to_string(),
"http://localhost:3000/auth/callback/github".to_string(),
);
Part of authly-rs
This crate is part of the authly-rs workspace.
Dependencies
~6–22MB
~233K SLoC