Expand description
Steam authentication and session management.
This crate provides login session management, Steam Guard handling, and token management.
Re-exports§
pub use helpers::decode_jwt;pub use helpers::is_refresh_token;
Modules§
- helpers
- Helper utilities for Steam authentication.
Structs§
- Allowed
Confirmation - An allowed confirmation type.
- ApiRequest
- Request to send to Steam API.
- ApiResponse
- Response from Steam API.
- Approve
Auth Session Request - Request to approve an auth session.
- Approver
Options - Options for creating a LoginApprover.
- Authentication
Client - Authentication client for communicating with Steam’s auth service.
- CAuthentication
GetAuth Session Info Response - Get auth session info response
- Credentials
Details - Details for starting a login with credentials.
- Encrypted
Password - Result of password encryption.
- Http
Client - Production HTTP client using reqwest.
- Http
Response - HTTP response from a request.
- Login
Approver - Login approver for approving/denying login sessions from another device.
- Login
Approver Builder - Builder for creating
LoginApproverinstances. - Login
Session - The primary interface for Steam authentication.
- Login
Session Builder - Builder for creating
LoginSessioninstances. - Login
Session Options - Options for creating a LoginSession.
- Multipart
Form - Multipart form for HTTP requests.
- Poll
Login Status Response - Poll response from auth status.
- Poll
Result - Result of a successful poll.
- Process
Confirmations Result - Result of processing allowed confirmations.
- RsaKey
Response - Result of RSA key fetch.
- Start
Auth Session Response - Session state from begin auth.
- Start
Session Response - Response from starting a login session.
- Transfer
Info - Transfer endpoint information from finalize login response.
- Valid
Action - A valid action for completing authentication.
- Validated
Refresh Token - Result of validating a refresh token.
- WebApi
Transport - WebAPI transport for Steam authentication.
- WebSocketCM
Transport - WebSocket CM transport for SteamClient authentication.
Enums§
- EAuth
Session Guard Type - Guard type for authentication sessions
- EAuth
Session Security History - Security history for authentication sessions
- EAuth
Token Platform Type - Platform type for authentication tokens
- ESession
Persistence - Session persistence type
- Session
Error - Errors that can occur during Steam authentication.
- Transfer
Result - Result of executing a single transfer request.
- Transport
- Transport type for communicating with Steam.
Functions§
- add_
session_ id_ cookies - Add sessionid cookies for all domains.
- build_
cookie_ with_ domain - Build a cookie string with domain attached.
- build_
simple_ cookies - Build cookies for non-WebBrowser platforms (MobileApp, SteamClient).
- build_
transfer_ form_ params - Build form parameters for a transfer request.
- check_
finalize_ error - Check for errors in finalize login response.
- determine_
required_ code_ type - Determine which Steam Guard code type is required from confirmations.
- determine_
valid_ actions - Determine valid actions from allowed confirmations.
- execute_
single_ transfer - Execute a single transfer request and extract cookies from the response.
- execute_
transfers_ with_ retry - Execute all transfers with retry logic.
- extract_
cookie_ domains - Extract unique domains from a list of cookies.
- extract_
domain_ from_ url - Extract the domain from a URL for cookie setting.
- extract_
steam_ login_ cookies - Extract steamLoginSecure cookies from a Set-Cookie header.
- filter_
session_ id_ cookies - Filter out sessionid cookies from a list.
- generate_
session_ id - Generate a session ID from random bytes.
- parse_
cookies_ from_ header - Parse cookies from a Set-Cookie header value.
- parse_
transfer_ info - Parse transfer info from finalize login JSON response.
- process_
confirmations - Process allowed confirmations and determine required actions.
- rsa_
encrypt_ password - Encrypt a password using RSA PKCS1v15.
- validate_
access_ token - Validate an access token.
- validate_
refresh_ token - Validate a refresh token for the given platform.