pub trait GitAuth: Send + Sync {
// Required method
fn authorise<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 GitRequest,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Pluggable authoriser invoked by the service on write operations.
The default implementation (BasicNostrExtractor) fits the JSS
behaviour. Consumers embedding the service in a server that has
its own richer auth stack can supply their own implementation.
Required Methods§
Inspect req and either return Ok(webid_or_pubkey) — the
identity string the CGI layer will expose in REMOTE_USER —
or Err(AuthError).