Make Client fields public
This commit is contained in:
parent
954975732b
commit
ad23733ce4
|
@ -19,9 +19,15 @@ mod error;
|
||||||
/// OAuth 2.0 client.
|
/// OAuth 2.0 client.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct Client<P: Provider> {
|
pub struct Client<P: Provider> {
|
||||||
client_id: String,
|
/// Client ID.
|
||||||
client_secret: String,
|
pub client_id: String,
|
||||||
redirect_uri: Option<String>,
|
|
||||||
|
/// Client secret.
|
||||||
|
pub client_secret: String,
|
||||||
|
|
||||||
|
/// Redirect URI.
|
||||||
|
pub redirect_uri: Option<String>,
|
||||||
|
|
||||||
provider: PhantomData<P>,
|
provider: PhantomData<P>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue