pub struct OauthPack {Show 26 fields
pub token_url: String,
pub token_url_fallback: Option<String>,
pub authorize_url: Option<String>,
pub authorize_params: BTreeMap<String, String>,
pub device_auth_url: Option<String>,
pub client_id: Option<String>,
pub redirect_uri: Option<String>,
pub scopes: Vec<String>,
pub list_merge: ListMerge,
pub pkce: Option<bool>,
pub refresh_grant: Option<String>,
pub refresh_body: BTreeMap<String, String>,
pub token_request_format: Option<TokenRequestFormat>,
pub token_headers: BTreeMap<String, String>,
pub creds_path: Option<String>,
pub creds_format: Option<CredsFormat>,
pub access_token_ptr: Option<String>,
pub refresh_token_ptr: Option<String>,
pub expires_ptr: Option<String>,
pub expires_unit: Option<ExpiresUnit>,
pub access_env: Option<String>,
pub login: Option<Login>,
pub setup_token_hint: Option<String>,
pub keychain_service: Option<String>,
pub keychain_accounts: Vec<String>,
pub token_response: Option<TokenResponse>,
}Expand description
The [oauth] table: token POST and login surface.
Fields§
§token_url: StringToken endpoint. Required when [oauth] is present.
token_url_fallback: Option<String>Used only on HTTP 404 from token_url.
Authorize URL. Absent means no login in this profile.
Extra authorize query parameters.
device_auth_url: Option<String>Device-flow endpoint.
client_id: Option<String>Public client id. May be empty; login then exits 2.
redirect_uri: Option<String>PKCE loopback redirect.
scopes: Vec<String>OAuth scopes.
list_merge: ListMergeMerge policy for scopes.
pkce: Option<bool>PKCE flag. Default true when authorize_url is set.
refresh_grant: Option<String>grant_type when refresh_body omits it.
refresh_body: BTreeMap<String, String>Extra token-POST body fields (data only).
token_request_format: Option<TokenRequestFormat>Token POST encoding.
token_headers: BTreeMap<String, String>Headers on the token POST only.
creds_path: Option<String>Credential store path (~ and {env:} allowed).
creds_format: Option<CredsFormat>How to read/write the credential store.
access_token_ptr: Option<String>JSON Pointer into the store for the access token.
refresh_token_ptr: Option<String>JSON Pointer into the store for the refresh token.
expires_ptr: Option<String>JSON Pointer into the store for expiry.
expires_unit: Option<ExpiresUnit>Unit of the store expiry field.
access_env: Option<String>Env fallback for the access token.
login: Option<Login>Login mode.
setup_token_hint: Option<String>Free text printed for login = "setup-token". Backticks allowed.
keychain_service: Option<String>Optional macOS keychain service.
keychain_accounts: Vec<String>Optional keychain account names.
token_response: Option<TokenResponse>Pointers into the HTTP refresh response (not the store).