/
UsernamePasswordAuthentication

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.

Related content

GetPersons
GetPersons
Read with this
How to create a new account for a legal entity using CreateAccounts, GetPersons and GetAccountTypes
How to create a new account for a legal entity using CreateAccounts, GetPersons and GetAccountTypes
More like this
GetAccounts
GetAccounts
Read with this
CreateAssetAccountTypeLimitations
CreateAssetAccountTypeLimitations
More like this
CreateTradeOrders
CreateTradeOrders
Read with this
GetFundCompanies
GetFundCompanies
More like this

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