mirror of https://github.com/astral-sh/uv
Include the RFC in the docs for our `Credentials` variants (#16162)
This commit is contained in:
parent
aadf103855
commit
9cec60bcc4
|
|
@ -20,12 +20,14 @@ use uv_static::EnvVars;
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub enum Credentials {
|
pub enum Credentials {
|
||||||
|
/// RFC 7617 HTTP Basic Authentication
|
||||||
Basic {
|
Basic {
|
||||||
/// The username to use for authentication.
|
/// The username to use for authentication.
|
||||||
username: Username,
|
username: Username,
|
||||||
/// The password to use for authentication.
|
/// The password to use for authentication.
|
||||||
password: Option<Password>,
|
password: Option<Password>,
|
||||||
},
|
},
|
||||||
|
/// RFC 6750 Bearer Token Authentication
|
||||||
Bearer {
|
Bearer {
|
||||||
/// The token to use for authentication.
|
/// The token to use for authentication.
|
||||||
token: Vec<u8>,
|
token: Vec<u8>,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue