MicrosoftDocs / CloudAppSecurityDocs

Public repo for CloudAppSecurityDocs-pr
Creative Commons Attribution 4.0 International
107 stars 155 forks source link

Curl Command incorrect #626

Closed Spen789 closed 1 year ago

Spen789 commented 1 year ago

Curl command incorrect curl -XGET -H "Authorization:Token " "https://..contoso.com/api/discovery_block_scripts/?format=102&type=banned" should be

curl -XGET -H "Authorization:Bearer " "https://..contoso.com/api/discovery_block_scripts/?format=102&type=banned"

also if running command from PowerShell use curl.exe not just curl

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

dcurwin commented 1 year ago

Thank you for your comment. We'll investigate and get back to you.

batamig commented 1 year ago

Hi @Spen789, Our team has confirmed that we support both token and bearer options. When you use "Token", you'll need to provide the API token you produced in the portal, in the API Token tab. When you use "Bearer" you need to provide the token you produced through AAD graph.

Please confirm whether this helps with your issue, and we can clarify this in an upcoming fix. Thanks for contributing to docs!

batamig commented 1 year ago

We haven't heard back from you, so we will now close this issue. If this remains an issue, please reply and we will gladly continue the discussion.

please-close