| Crates.io | steam-connect |
| lib.rs | steam-connect |
| version | 1.3.0 |
| created_at | 2022-05-08 22:53:04.109524+00 |
| updated_at | 2022-10-19 17:36:24.254154+00 |
| description | Implementation Steam web authorization for simple use in projects with or without actix_web |
| homepage | |
| repository | https://github.com/AspectUnk/steam-connect-rs |
| max_upload_size | |
| id | 582807 |
| size | 58,582 |
Implementation Steam web authorization for simple use in projects with or without actix_web
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