Skip to main content

Crate aquila_auth_github

Crate aquila_auth_github 

Source
Expand description

§Aquila GitHub Auth

Crates.io Downloads Docs

OAuth2 authentication provider using GitHub.

Allows users to log in using their GitHub accounts. Supports restricting access to members of a specific GitHub Organization.

§Usage

let config = GithubConfig {
    client_id: "Iv1...".to_string(),
    client_secret: "secret".to_string(),
    redirect_uri: "http://localhost:3000/auth/callback".to_string(),
    required_org: Some("MyGameStudio".to_string()),
};

let auth = GithubAuthProvider::new(Some(config));

Structs§

GithubAuthProvider
GithubConfig