Skip to main content

InternalApiKeyService

Trait InternalApiKeyService 

Source
pub trait InternalApiKeyService<I: Iterator<Item = Result<Bytes, Error>>> {
    // Required method
    fn get_access_token_from_api_key_value(
        &self,
        request: &GetAccessTokenFromApiKeyRequest,
    ) -> 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, ) -> 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.

Implementors§

Source§

impl<I: Iterator<Item = Result<Bytes, Error>>, __C> InternalApiKeyService<I> for InternalApiKeyServiceClient<__C>
where __C: Client<ResponseBody = I>,