pub struct DiscordSocialConfig {
pub client_id: String,
pub client_secret_env: String,
pub redirect_uri: String,
pub base_url: Option<String>,
}Expand description
[auth.social.discord] — Discord OAuth2 social login (#944).
Discord reports verified on the user object, and the runtime honours it:
an unverified address keys on (discord, id) rather than on the email. That
check is why discord is in the default trusted-email set.
Fields§
§client_id: StringOAuth2 client_id of the Discord application.
client_secret_env: StringName of the environment variable holding the client secret.
redirect_uri: StringThis server’s /auth/v1/callback URL, registered with Discord.
base_url: Option<String>Base URL override (default https://discord.com). The runtime’s SSRF
guards still apply.
Trait Implementations§
Source§impl Clone for DiscordSocialConfig
impl Clone for DiscordSocialConfig
Source§impl Debug for DiscordSocialConfig
impl Debug for DiscordSocialConfig
Source§impl<'de> Deserialize<'de> for DiscordSocialConfig
impl<'de> Deserialize<'de> for DiscordSocialConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiscordSocialConfig
Source§impl PartialEq for DiscordSocialConfig
impl PartialEq for DiscordSocialConfig
Source§impl Serialize for DiscordSocialConfig
impl Serialize for DiscordSocialConfig
impl StructuralPartialEq for DiscordSocialConfig
Auto Trait Implementations§
impl Freeze for DiscordSocialConfig
impl RefUnwindSafe for DiscordSocialConfig
impl Send for DiscordSocialConfig
impl Sync for DiscordSocialConfig
impl Unpin for DiscordSocialConfig
impl UnsafeUnpin for DiscordSocialConfig
impl UnwindSafe for DiscordSocialConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.