AuthenticationUtility from ServiceSamples on GitHub (https://github.com/Microsoft/Dynamics-AX-Integration/tree/master/ServiceSamples/AuthenticationUtility) is very useful; it allows developers not to worry about the boilerplate authentication code.

Turning it to a NuGet package would allow easy adding to new projects (now it requires knowing about the samples and copying the utility from there), add versioning, allow maintaining at a single place (unlike when everybody just copies a certain version of the source code), improve discoverability, enforce consistency and so on.

Obviously it requires some refactoring, because currently setting parameters (such as ActiveDirectoryClientAppId) requires changing code of the utility itself. Developers must be able to provide such values as parameters from outside the authentication library.

Category: Development
Needs Votes