Crates.io | rusty_oauth |
lib.rs | rusty_oauth |
version | 0.1.39 |
source | src |
created_at | 2024-10-25 12:17:21.242199 |
updated_at | 2024-12-06 12:54:55.062658 |
description | A lightweight, secure OAuth 2.0 library for Rust, providing streamlined authentication flows for applications and services. Includes support for authorization codes, client credentials, and token management, with focus on security and ease of integration. |
homepage | https://crates.io/crates/rusty_oauth |
repository | https://github.com/HashiramaSenjuhari/rusty_oauth |
max_upload_size | |
id | 1422462 |
size | 369,498 |
rusty-oauth is a simple, lightweight, and efficient Rust crate that facilitates OAuth 2.0 authentication with popular service providers such as Google, GitHub, soon Facebook, and more. This crate provides an easy-to-use interface to handle the OAuth authorization flow, manage tokens, and interact with user data through RESTful APIs. Designed to be minimal yet powerful, OAuth-Rust helps developers integrate secure authentication into their Rust application
To include this crate in your project, add the following line to your Cargo.toml
:
[dependencies]
rusty_oauth = "0.1.35"
important keys
GOOGLE_ID= ""
GOOGLE_SECRET=""
GITHUB_ID=""
GITHUB_SECRET=""
RUSTY_SECRET=""
Oauth::new()
.id("")
.secret("")
.scope("email profile")
.login("/login")
.redirect("/")
.provider(rusty_oauth::Provider::GOOGLE) or // rusty_oauth::Provider::GOOGLE
.stream(&stream)
.response(&response)
.build()
.unwrap();
let credential = CREDENTIALS.lock().unwrap(); // contains
This project was created and maintained by Me, To give the ability to developer to gain control over oauth
Special thanks to all contributors and the open-source community for their invaluable support, feedback, and contributions. Together, we continue to push the boundaries of what's possible