Skip to main content

Crate ibridge_auth

Crate ibridge_auth 

Source
Expand description

Credentials, credential sources and the iCloud host allowlist.

Structs§

Credentials
An Apple ID and its app-specific password.
EnvSource
Process environment variables IBRIDGE_APPLE_ID and IBRIDGE_APP_PASSWORD.
FileSource
A KEY=VALUE file that must be mode 0600.
KeyringSource
OS keychain entry under the service name ibridge.
LoginLog
What iCloud said to the logins one call made.
ValidationReport
Per-service results for one sign-in attempt.

Enums§

AuthError
Why a service was not accepted.
AuthMethod
How a caller proves it may use an iCloud account.
LoginVerdict
What a server said to a login.
ServiceCheck
Result of checking one iCloud service.

Traits§

CredentialSource
Loads credentials for one account.
Validator
Checks mail, calendar and contacts for a sign-in.

Functions§

call_credentials
Passes the current call’s credentials to read.
is_allowed_host
Returns whether host is one of the six iCloud patterns.
report_login
Notes the result of a login the current call made. Does nothing outside a call.
with_call_credentials
Runs work with credentials visible to call_credentials and logins noted in log.