#steam #login #auth #openid #actix-web

steam-connect

Implementation Steam web authorization for simple use in projects with or without actix_web

11 releases (4 stable)

1.3.0 Oct 19, 2022
1.2.0 Oct 1, 2022
1.0.0 May 11, 2022
0.2.1 May 9, 2022
0.1.4 May 9, 2022

#348 in Authentication

Download history 28/week @ 2023-02-09 53/week @ 2023-02-16 1/week @ 2023-02-23 3/week @ 2023-03-02 25/week @ 2023-03-09 1/week @ 2023-03-16 7/week @ 2023-03-30 7/week @ 2023-04-06 3/week @ 2023-04-13 12/week @ 2023-04-20 1/week @ 2023-04-27 24/week @ 2023-05-04 4/week @ 2023-05-11 5/week @ 2023-05-18 28/week @ 2023-05-25

61 downloads per month

MIT license

17KB
206 lines

steam-connect

Implementation Steam web authorization for simple use in projects with or without actix_web

Usage

Example:

// Getting the authorization link. Requires a link to redirect
// the user after authorization. If used in a project with
// actix_web, you can use the redirect function defined in Redirect
let url = Redirect::new("http://127.0.0.1:8080/auth/callback").unwrap();

// Performs data validation when returning to the callback page
let verify = Verify::verify_request(req.query_string()).await.unwrap();

verify.claim_id(); // Get SteamID64 of an authorized user

// Queries the steam api for more information about the profile.
verify.get_summaries();

You can study an example project using actix_web


lib.rs:

steam-connect

Implementation Steam web authorization for simple use in projects with or without actix_web

Usage

Example:

// Getting the authorization link. Requires a link to redirect
// the user after authorization. If used in a project with
// actix_web, you can use the redirect function defined in Redirect
let url = Redirect::new("http://127.0.0.1:8080/auth/callback").unwrap();

// Performs data validation when returning to the callback page
let verify = Verify::verify_request(req.query_string()).await.unwrap();

verify.claim_id(); // Get SteamID64 of an authorized user

// Queries the steam api for more information about the profile.
verify.get_summaries();

You can study an example project using actix_web

Dependencies

~5–15MB
~331K SLoC