pub struct BasicNostrExtractor { /* private fields */ }Expand description
The canonical JSS-parity authoriser.
Parses Authorization: Basic <b64(nostr:<token>)> headers,
base64-decodes, splits on the first :, verifies the username is
literally nostr, then treats the remainder as a NIP-98 event
token and delegates to solid_pod_rs::auth::nip98::verify_at.
The URL verified against is reconstructed from the request’s
scheme/host/path; see GitRequest::auth_url.
Implementations§
Source§impl BasicNostrExtractor
impl BasicNostrExtractor
Sourcepub fn with_allowed(self, pubkeys: Vec<String>) -> Self
pub fn with_allowed(self, pubkeys: Vec<String>) -> Self
Restrict to the given hex pubkeys (lowercase).
Trait Implementations§
Source§impl Clone for BasicNostrExtractor
impl Clone for BasicNostrExtractor
Source§fn clone(&self) -> BasicNostrExtractor
fn clone(&self) -> BasicNostrExtractor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicNostrExtractor
impl Debug for BasicNostrExtractor
Source§impl Default for BasicNostrExtractor
impl Default for BasicNostrExtractor
Source§fn default() -> BasicNostrExtractor
fn default() -> BasicNostrExtractor
Returns the “default value” for a type. Read more
Source§impl GitAuth for BasicNostrExtractor
impl GitAuth for BasicNostrExtractor
Inspect
req and either return Ok(webid_or_pubkey) — the
identity string the CGI layer will expose in REMOTE_USER —
or Err(AuthError).Auto Trait Implementations§
impl Freeze for BasicNostrExtractor
impl RefUnwindSafe for BasicNostrExtractor
impl Send for BasicNostrExtractor
impl Sync for BasicNostrExtractor
impl Unpin for BasicNostrExtractor
impl UnsafeUnpin for BasicNostrExtractor
impl UnwindSafe for BasicNostrExtractor
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