Trait splinter::oauth::SubjectProvider[][src]

pub trait SubjectProvider: Send + Sync {
    fn get_subject(
        &self,
        access_token: &str
    ) -> Result<Option<String>, InternalError>;
fn clone_box(&self) -> Box<dyn SubjectProvider>; }
Expand description

A service that fetches subject identifiers from a backing OAuth server

Required methods

Attempts to get the subject that the given access token is for. This method will return Ok(None) if the access token could not be resolved to a subject.

Clone implementation for SubjectProvider. The implementation of the Clone trait for Box<dyn SubjectProvider> calls this method.

Implementors