Skip to main content

Crate steam_auth

Crate steam_auth 

Source
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§

AllowedConfirmation
An allowed confirmation type.
ApiRequest
Request to send to Steam API.
ApiResponse
Response from Steam API.
ApproveAuthSessionRequest
Request to approve an auth session.
ApproverOptions
Options for creating a LoginApprover.
AuthenticationClient
Authentication client for communicating with Steam’s auth service.
CAuthenticationGetAuthSessionInfoResponse
Get auth session info response
CredentialsDetails
Details for starting a login with credentials.
EncryptedPassword
Result of password encryption.
HttpClient
Production HTTP client using reqwest.
HttpResponse
HTTP response from a request.
LoginApprover
Login approver for approving/denying login sessions from another device.
LoginApproverBuilder
Builder for creating LoginApprover instances.
LoginSession
The primary interface for Steam authentication.
LoginSessionBuilder
Builder for creating LoginSession instances.
LoginSessionOptions
Options for creating a LoginSession.
MultipartForm
Multipart form for HTTP requests.
PollLoginStatusResponse
Poll response from auth status.
PollResult
Result of a successful poll.
ProcessConfirmationsResult
Result of processing allowed confirmations.
RsaKeyResponse
Result of RSA key fetch.
StartAuthSessionResponse
Session state from begin auth.
StartSessionResponse
Response from starting a login session.
TransferInfo
Transfer endpoint information from finalize login response.
ValidAction
A valid action for completing authentication.
ValidatedRefreshToken
Result of validating a refresh token.
WebApiTransport
WebAPI transport for Steam authentication.
WebSocketCMTransport
WebSocket CM transport for SteamClient authentication.

Enums§

EAuthSessionGuardType
Guard type for authentication sessions
EAuthSessionSecurityHistory
Security history for authentication sessions
EAuthTokenPlatformType
Platform type for authentication tokens
ESessionPersistence
Session persistence type
SessionError
Errors that can occur during Steam authentication.
TransferResult
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.