pub enum AuthMethod {
ExternalBrowser(BrowserConfig),
ProgrammaticAccessToken {
token: Secret,
},
KeyPairJwt(KeyPairConfig),
}Expand description
The authentication method used to establish a session.
Variants§
ExternalBrowser(BrowserConfig)
External-browser SSO: opens a browser and waits on a localhost callback.
ProgrammaticAccessToken
A Snowflake programmatic access token, presented in place of a password. Non-interactive; requires the user to be covered by a network policy.
KeyPairJwt(KeyPairConfig)
Key-pair authentication: a locally-signed RS256 JWT. Non-interactive;
requires the user’s RSA public key to be registered with the account
(ALTER USER … SET RSA_PUBLIC_KEY = …).
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnsafeUnpin for AuthMethod
impl UnwindSafe for AuthMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more