Permalink
93a6181 Feb 24, 2017
@hazendaz @dblock @ryantxu @dwickern
53 lines (37 sloc) 1.62 KB

Getting Started with Waffle API

This library publishes several Windows authentication, authorization and membership interfaces.

Getting Started in C#

Reference Waffle.Windows.AuthProvider.dll. Create a new instance of Waffle.Windows.AuthProvider.WindowsAuthProviderImpl.

WindowsAuthProviderImpl waffle = new WindowsAuthProviderImpl();
IWindowsAccount admin = waffle.LookupAccount("Administrator");
Console.WriteLine(admin.SidString);
Console.WriteLine(admin.Fqn);

Getting Started with VBScript and COM

Register the authentication provider DLL as follows.

regasm.exe /codebase /tlb:Waffle.Windows.AuthProvider.tlb Waffle.Windows.AuthProvider.dll

Create a new instance of Waffle.Windows.AuthProvider.WindowsAuthProviderImpl.

set windowsAuthProviderImpl = CreateObject("Waffle.Windows.AuthProvider")

Getting Started in Java

Add waffle-jna-1.8.2.jar, jna-4.2.2.jar, jna-platform-4.2.2.jar, guava-20.0.jar, and slf4j-api-1.7.22.jar to your CLASSPATH or, if you use Maven, add the following to your pom.xml.

  • For latest snapshot instead use waffle-jna-1.9.0-SNAPSHOT, caffeine-2.3.5.jar, jna-4.3.0.jar, jna-platform-4.3.0.jar and slf4j-1.7.22.jar.
<properties>
    <waffle.version>1.8.2</waffle.version>
</properties>

<dependency>
    <groupId>com.github.waffle</groupId>
    <artifactId>waffle-jna</artifactId>
    <version>${waffle.version}</version>
</dependency>

Create a new instance of waffle.windows.auth.impl.WindowsAuthProviderImpl.