UsernamePasswordAuthentication

Input

NameTypeDescriptionMandatoryAvailable from version
DomainEnum

Admin = authenticates an admin user

Partner = authenticates a partner/advisor user

Front = authenticates a customer user



Usernamestring


Passwordstring


Response

NameTypeDescriptionAvailable from version
IsAuthenticatedbool

PersonIdGuid

AccessLevelintAccessLevel of user, usually value 10 or 1002.13

Code examples

C# - Authenticate an admin user
//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.

Terms of License
Change Policy
© 2009 - 2024 Huddlestock Technologies AB All rights reserved