pub enum UserinfoParser {
Oidc,
GitHub,
LinearGraphql,
AppleIdToken,
Custom {
id_path: &'static str,
email_path: &'static str,
name_path: Option<&'static str>,
},
}Expand description
Where + how to read identity fields out of a userinfo response.
Variants§
Oidc
Standard OIDC shape: { sub, email, name, picture }.
GitHub
GitHub’s REST shape — id is numeric, name falls back to
login, email may need a separate /user/emails fetch.
LinearGraphql
Linear’s { viewer: { id, email, name } } GraphQL response.
AppleIdToken
Apple — identity lives in the id_token JWT returned by the
token endpoint, not a userinfo endpoint. Decoded inline.
Custom
Custom JSON pointers — for one-off providers whose responses don’t match any standard shape. JSON-pointer paths into the response object.
Trait Implementations§
Source§impl Clone for UserinfoParser
impl Clone for UserinfoParser
Source§fn clone(&self) -> UserinfoParser
fn clone(&self) -> UserinfoParser
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 UserinfoParser
impl RefUnwindSafe for UserinfoParser
impl Send for UserinfoParser
impl Sync for UserinfoParser
impl Unpin for UserinfoParser
impl UnsafeUnpin for UserinfoParser
impl UnwindSafe for UserinfoParser
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