Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 3
Next »
Name | Type | Description |
---|
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 |
---|
IsAuthenticated | bool | |
PersonId | Guid | |
//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.