Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
Domain | Enum | Admin = authenticates an admin user Partner = authenticates a partner/advisor user Front = authenticates a customer user | ||
Username | string | |||
Password | string |
Name | Type | Description | Available from version |
---|---|---|---|
IsAuthenticated | bool | ||
PersonId | Guid | ||
AccessLevel | int | AccessLevel of user, usually value 10 or 100 | 2.13 |
//Use the UsernamePasswordAuthentication to authenticate an admin user var client = new BFSServiceReference.bfsapiSoapClient(); var credentials = new BFSServiceReference.Credentials() { UserName = bfsusername, //Username of administrative user in your instance of BFS Password = bfspassword, //Password of the administrative user in your instance of BFS }; var authentication = client.UsernamePasswordAuthentication(new BFSServiceReference.UsernamePasswordAuthenticateRequest() { Credentials = credentials, identify = bfsidentifier, //Identifier is a unique token for your instance of BFS Domain = Domain.Admin, Password = "", Username = "" }); Console.WriteLine(authentication.IsAuthenticated + "," + authentication.PersonId); |