equinor / omnia-timeseries-python

Official Python SDK for the Omnia Timeseries API
MIT License
6 stars 3 forks source link

feat: use msal_bearer to get token interactively #49

Closed asmfstatoil closed 6 months ago

asmfstatoil commented 6 months ago

Pull Request Template

Description

New feature to match new access regime. Get access token using msal interactive flow and public client application. Makes it much easier to use for end-users as they no longer require a secret or device code flow.

Changed input order of http_client class to better support default inputs.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Got access token using new code and read data from api.

Test Configuration:

Checklist:

ghost commented 6 months ago

Too many unnecessary changes and hardcoding of environment specific things. Maybe if it just used https://pypi.org/project/msal-extensions/ and minimal changes.