[−][src]Struct fxa_client::Config
Fields
content_url: String
token_server_url_override: Option<String>
client_id: String
redirect_uri: String
remote_config: RefCell<Option<Arc<RemoteConfig>>>
Implementations
impl Config
[src]
pub fn release(client_id: &str, redirect_uri: &str) -> Self
[src]
pub fn stable_dev(client_id: &str, redirect_uri: &str) -> Self
[src]
pub fn stage_dev(client_id: &str, redirect_uri: &str) -> Self
[src]
pub fn china(client_id: &str, redirect_uri: &str) -> Self
[src]
pub fn localdev(client_id: &str, redirect_uri: &str) -> Self
[src]
pub fn new(content_url: &str, client_id: &str, redirect_uri: &str) -> Self
[src]
pub fn override_token_server_url<'a>(
&'a mut self,
token_server_url_override: &str
) -> &'a mut Self
[src]
&'a mut self,
token_server_url_override: &str
) -> &'a mut Self
Override the token server URL that would otherwise be provided by the FxA .well-known/fxa-client-configuration endpoint. This is used by self-hosters that still use the product FxA servers for authentication purposes but use their own Sync storage backend.
pub(crate) fn init(
content_url: String,
auth_url: String,
oauth_url: String,
profile_url: String,
token_server_endpoint_url: String,
authorization_endpoint: String,
issuer: String,
jwks_uri: String,
token_endpoint: String,
userinfo_endpoint: String,
introspection_endpoint: String,
client_id: String,
redirect_uri: String,
token_server_url_override: Option<String>
) -> Self
[src]
content_url: String,
auth_url: String,
oauth_url: String,
profile_url: String,
token_server_endpoint_url: String,
authorization_endpoint: String,
issuer: String,
jwks_uri: String,
token_endpoint: String,
userinfo_endpoint: String,
introspection_endpoint: String,
client_id: String,
redirect_uri: String,
token_server_url_override: Option<String>
) -> Self
fn remote_config(&self) -> Result<Arc<RemoteConfig>>
[src]
fn set_remote_config(&self, remote_config: RemoteConfig) -> Arc<RemoteConfig>
[src]
pub fn content_url(&self) -> Result<Url>
[src]
pub fn content_url_path(&self, path: &str) -> Result<Url>
[src]
pub fn client_config_url(&self) -> Result<Url>
[src]
pub fn openid_config_url(&self) -> Result<Url>
[src]
pub fn connect_another_device_url(&self) -> Result<Url>
[src]
pub fn pair_url(&self) -> Result<Url>
[src]
pub fn pair_supp_url(&self) -> Result<Url>
[src]
pub fn oauth_force_auth_url(&self) -> Result<Url>
[src]
pub fn settings_url(&self) -> Result<Url>
[src]
pub fn settings_clients_url(&self) -> Result<Url>
[src]
pub fn auth_url(&self) -> Result<Url>
[src]
pub fn auth_url_path(&self, path: &str) -> Result<Url>
[src]
pub fn profile_url(&self) -> Result<Url>
[src]
pub fn profile_url_path(&self, path: &str) -> Result<Url>
[src]
pub fn oauth_url(&self) -> Result<Url>
[src]
pub fn oauth_url_path(&self, path: &str) -> Result<Url>
[src]
pub fn token_server_endpoint_url(&self) -> Result<Url>
[src]
pub fn authorization_endpoint(&self) -> Result<Url>
[src]
pub fn issuer(&self) -> Result<Url>
[src]
pub fn jwks_uri(&self) -> Result<Url>
[src]
pub fn token_endpoint(&self) -> Result<Url>
[src]
pub fn introspection_endpoint(&self) -> Result<Url>
[src]
pub fn userinfo_endpoint(&self) -> Result<Url>
[src]
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Config
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl Send for Config
impl !Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,