pub enum ResolvedSpec {
Static(&'static ProviderSpec),
Oidc(Arc<DiscoveredSpec>),
}Expand description
Either a compile-time builtin spec or a runtime-discovered OIDC spec. The two cases share read accessors via this enum so call sites don’t care where the URLs came from.
Variants§
Static(&'static ProviderSpec)
Static spec from builtin::all.
Oidc(Arc<DiscoveredSpec>)
Runtime spec materialized from an OIDC discovery doc.
Implementations§
Source§impl ResolvedSpec
impl ResolvedSpec
pub fn auth_url(&self) -> &str
pub fn token_url(&self) -> &str
pub fn userinfo_url(&self) -> Option<&str>
pub fn scopes(&self) -> &str
pub fn scope_separator(&self) -> &str
pub fn client_id_param(&self) -> &str
pub fn auth_query_extra(&self) -> &str
pub fn requires_pkce(&self) -> bool
pub fn userinfo_method(&self) -> UserinfoMethod
pub fn userinfo_parser(&self) -> UserinfoParser
pub fn token_exchange(&self) -> TokenExchangeShape
Trait Implementations§
Source§impl Clone for ResolvedSpec
impl Clone for ResolvedSpec
Source§fn clone(&self) -> ResolvedSpec
fn clone(&self) -> ResolvedSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedSpec
impl RefUnwindSafe for ResolvedSpec
impl Send for ResolvedSpec
impl Sync for ResolvedSpec
impl Unpin for ResolvedSpec
impl UnsafeUnpin for ResolvedSpec
impl UnwindSafe for ResolvedSpec
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