Trait AsyncInternalApiKeyService

Source
pub trait AsyncInternalApiKeyService {
    // Required method
    fn get_access_token_from_api_key_value(
        &self,
        request: GetAccessTokenFromApiKeyRequest,
    ) -> impl Future<Output = Result<GetAccessTokenResponse, Error>> + Send;
}
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>> + Send

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", so this trait is not object safe.

Implementors§