pub enum Credentials {
ApiKey(Secret),
OauthClient {
client_id: String,
client_secret: Secret,
scopes: Vec<String>,
},
Federated {
client_id: Option<String>,
jwt_file: PathBuf,
scopes: Vec<String>,
},
}Expand description
How this server proves who it is to the control plane.
Variants§
ApiKey(Secret)
A user’s own API access token, sent as a bearer token. It expires on the day the admin console gave it and is never renewed from this side.
Named for TAILSCALE_API_KEY, the variable it comes from.
OauthClient
An OAuth client, exchanged for a short-lived access token.
Federated
A workload identity: a JWT written by the platform, exchanged for an access token. The file is read at exchange time, never cached, because the platform rotates it underneath us.
Implementations§
Source§impl Credentials
impl Credentials
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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