Windows-itpro-docs: Documentation / stability issues

Created on 12 Feb 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/windows-itpro-docs

It's very frustrating when code snippets don't work; can versions of libraries be specified if the regular improvements lead to incompatibilities (and I'm very supportive of deprecating ineffective legacy code)?

A couple of issues in the code snippet above:

''''
AuthenticationContext context = new AuthenticationContext(string.Format("https://login.windows.net/{0}/oauth2", tenantId));
ClientCredential clientCredentials = new ClientCredential(clientId, clientSecret);
AuthenticationResult authenticationResult = context.AcquireToken(resource, clientCredentials);
''''

The AuthenticationContext.AcquireToken doesn't seem to exist any more - been replaced by AcquireTokenAsync it seems.
Also it would be useful to know what type "resource" is in the deprecated method.

Given my inability to test the request parameters above, are these the only fields that can be used to filter event data i.e. the fields detailed in the Windows Defender ATP alert API fields page are not usable?

thanks


Document Details

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

defender for endpoint security

Most helpful comment

Hi, thank you for your feedback. Checking with the engineering team.

All 3 comments

@officedocsbot assign @e0i

Hi, thank you for your feedback. Checking with the engineering team.

Updates to the code snippet will be published by this afternoon. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcnil815 picture marcnil815  Â·  3Comments

illfated picture illfated  Â·  3Comments

helloitsliam picture helloitsliam  Â·  3Comments

SwiftOnSecurity picture SwiftOnSecurity  Â·  3Comments

RAJU2529 picture RAJU2529  Â·  3Comments