Skip to main content

InternalApiKeyService

Trait InternalApiKeyService 

Source
pub trait InternalApiKeyService<I>
where 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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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