Dynatrace / dynatrace-automation-tools

Apache License 2.0
12 stars 2 forks source link

[Feature] Client Authentication #1

Closed tobigremmer-dt closed 1 year ago

tobigremmer-dt commented 1 year ago

Is your feature request related to a problem? Please describe. As an integrator, I want to have the option to authenticate any calls to Dynatrace with user created API tokens as well as client created OAuth tokens.

Ref:

drqc commented 1 year ago

After some research with R&D, there are 2 authentication options available depending on the API that will get consumed. Oauth2 (Under account management UI) is for new gen3 apps and services. Dynatrace classic tokens is for environment v1 and environmment v2 api and configuration api. The Dynatrace classic approach would be supported in Oauth2 in the future but no promises on dates.https://community.dynatrace.com/t5/Dynatrace-product-ideas/Dynatrace-SaaS-Getting-Access-Token-Usage-Information/idi-p/198700.

For now we shoudl implement the 2 authentication as part of the main command since it allows to access the full api scope and in the future it should only be oauth2