Genpact Cora Knowledge Center

Support

Authenticate Users

Windows Authentication

When you use Windows authentication to authenticate users: 

AuthenticatedUser user = engine.GetServiceWithCheck<IAuthenticationService>().Authenticate();
user.CurrentUserInfo.DisplayName;

Add the following section to the configuration file.

<add type="PNMsoft.Sequence.Security.WindowsAuthenticationProvider, PNMsoft.Sequence.Runtime, Version=#.#.#.#, Culture=neutral, PublicKeyToken=Token#"></add>


User Name and Password Authentication

When you use user name and password authentication to authenticate users: 

AuthenticatedUser user = engine.GetServiceWithCheck<IAuthenticationService>().Authenticate("john","1");
user.CurrentUserInfo.DisplayName;

Add the following section to the configuration file.

<add type="PNMsoft.Sequence.Security.UsernameAuthenticationProvider, PNMsoft.Sequence.Runtime, Version=#.#.#.#, Culture=neutral, PublicKeyToken=Token#"></add>