Skip to main content

append_auth_phase_two_token

Function append_auth_phase_two_token 

Source
pub fn append_auth_phase_two_token(
    out: &mut Vec<u8>,
    user: &str,
    token: &str,
    driver_name: &str,
    version_num: u32,
    connect_string: &str,
    edition: Option<&str>,
) -> Result<()>
Expand description

Appends the auth message for token authentication (OCI IAM database token / OAuth2) to the fast-auth bundle. Unlike password auth there is no verifier challenge: the reference sends auth phase TWO directly, carrying the token in AUTH_TOKEN with no AUTH_SESSKEY/AUTH_PASSWORD and auth mode LOGON (no WITH_PASSWORD); it never resends (messages/auth.pyx _set_params/_write_message, messages/fast_auth.pyx). Because this message lives inside the fast-auth bundle (ttc field version 19.1), the function code carries no ub8 token-num — exactly like append_auth_phase_one.