STMicroelectronics / stm32ai-modelzoo

AI Model Zoo for STM32 devices
Other
236 stars 64 forks source link

Vespucci Integration: add support for auth token #18

Closed AlbyST closed 8 months ago

AlbyST commented 8 months ago

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)
ST-dot-com commented 8 months ago

This pull request has been refused, the Contribution License Agreement must be signed.