[−][src]Trait interledger::http::HttpStore
The interface for Stores that can be used with the HttpServerService.
Associated Types
type Account: HttpAccount
Required methods
fn get_account_from_http_auth(
&self,
username: &Username,
token: &str
) -> Box<dyn Future<Error = (), Item = Self::Account> + 'static + Send>
&self,
username: &Username,
token: &str
) -> Box<dyn Future<Error = (), Item = Self::Account> + 'static + Send>
Load account details based on the full HTTP Authorization header received on the incoming HTTP request.
Implementors
impl HttpStore for RedisStore
[src]
type Account = Account
fn get_account_from_http_auth(
&self,
username: &Username,
token: &str
) -> Box<dyn Future<Error = (), Item = <RedisStore as HttpStore>::Account> + 'static + Send>
[src]
&self,
username: &Username,
token: &str
) -> Box<dyn Future<Error = (), Item = <RedisStore as HttpStore>::Account> + 'static + Send>
Checks if the stored token for the provided account id matches the provided token, and if so, returns the account associated with that token