imednet.auth package

Module contents

Authentication helpers.

class imednet.auth.ApiKeyAuth(api_key, security_key)[source]

Bases: object

Authentication strategy using API Key and Security Key.

Parameters:
  • api_key (str) –

  • security_key (str) –

get_headers()[source]

Return the API key and security key headers.

Return type:

Dict[str, str]

class imednet.auth.AuthStrategy(*args, **kwargs)[source]

Bases: Protocol

Protocol for authentication strategies.

Strategies must provide headers to be injected into requests.

get_headers()[source]

Return authentication headers.

Return type:

Dict[str, str]