Skip to main content

LocalAsyncInternalApiKeyService

Trait LocalAsyncInternalApiKeyService 

Source
pub trait LocalAsyncInternalApiKeyService<I: Stream<Item = Result<Bytes, Error>>> {
    // Required method
    fn get_access_token_from_api_key_value(
        &self,
        request: &GetAccessTokenFromApiKeyRequest,
    ) -> impl Future<Output = Result<GetAccessTokenResponse, Error>>;
}
Expand description

This internal-only service manages long lived api keys.e

Required Methods§

Source

fn get_access_token_from_api_key_value( &self, request: &GetAccessTokenFromApiKeyRequest, ) -> impl Future<Output = Result<GetAccessTokenResponse, Error>>

Get a Nominal-issued access token from a long-lived API key. Callers should verify that their api key is formatted properly (i.e. prefixed with “nominal_api_key”) before calling this endpoint.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§