[][src]Struct fxa_client::Config

pub struct Config {
    content_url: String,
    token_server_url_override: Option<String>,
    pub client_id: String,
    pub redirect_uri: String,
    remote_config: RefCell<Option<Arc<RemoteConfig>>>,
}

Fields

content_url: Stringtoken_server_url_override: Option<String>client_id: Stringredirect_uri: Stringremote_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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,