Skip to end of metadata
Go to start of metadata
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 |
|
|
|
Response
Name | Type | Description | Available from version |
---|
IsAuthenticated | bool |
|
|
PersonId | Guid |
|
|
AccessLevel | int | AccessLevel of user. Usually value 10 or 100 | 2.13 |
Code examples
//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);
Blog stream
Create a blog post to share news and announcements with your team and company.