Add support for authenticated API calls to STM32AI Developer Cloud using authorisation tokens and specific user service component to authorise the tokens against Cognito Identity Provider.
Sample usage:
from stm32ai_dc import (
Stm32Ai,
CloudBackend,
)
from stm32ai_dc.backend.cloud.cognito_user_service import CognitoUserService
cloud_backend = CloudBackend(
username=None,
password=None,
auth_token=auth_token,
version=version,
)
cloud_backend.user_service = CognitoUserService(auth_token)
ai = Stm32Ai(cloud_backend)
Add support for authenticated API calls to STM32AI Developer Cloud using authorisation tokens and specific user service component to authorise the tokens against Cognito Identity Provider.
Sample usage: