1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! # 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](https://github.com/AspectUnk/steam-connect-rs/blob/main/examples/actix.rs) using actix_web
extern crate serde;
extern crate lazy_static;
pub use Redirect;
pub use Verify;