Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get client_id and client_secret for Azure Digital Twin Swagger?

It is not clear from documentation of Azure Digital Twin Swagger, how to get Client ID and Client Secret. From the url link, figured it client_id as Application ID, however not able to get how to set client_secret:?

like image 876
Selva Kumaresan Ramakrishnan Avatar asked Mar 05 '23 02:03

Selva Kumaresan Ramakrishnan


2 Answers

+1 i can't get the swagger to work either - would be neat though. i've done all my explorations through writing code and using postman.

The tutorials are very good. There is an excellent walk-through on how to register an app in AAD and get the needed clientId and clientSecret bits. It's for postman, but start to finish it works very well.

https://learn.microsoft.com/en-us/azure/digital-twins/security-authenticating-apis

like image 196
Gregor Avatar answered Mar 07 '23 17:03

Gregor


Unfortunately it's not currently possible to authenticate to Digital Twins directly from Swagger, however, we did want to provide the Swagger sample as a "sneak peak." But, the docs do need updating as it's not clear that "try it out" is not functional. Thank you for your input. As mentioned above postman is an alternative.

like image 23
ranah Avatar answered Mar 07 '23 17:03

ranah