@dan said in Problems logging in user through C# API call:
_faClient
So _faClient is DIed. The service is setup here.
services.AddTransient<IFusionAuthAsyncClient, FusionAuthClient>(_ =>
{
return FusionAuthClientBuilder.Build(context.Configuration);
});
How do I check to see if the server has started? I have the firewall open on that port(in and out), and can login through the 9011 port.
This is setup on a ec2 server, so I am using a static ip to make calls to it, and I have those specified in my User secrets, which looks like.
{
"UsersManagement":{
"ClientSecret" : "XXXX",
"ApiKey" : "XXXX",
"Server" : "http://xxx.xxx.xxx.xxx:9011",
"Authority" : "http://SAME.AS.ABOVE:9011",
"TenantId" : "XXXX",
"ApplicationId" : "XXXX",
"ClientID" : "SAME AS ABOVE" }
}
Which looking at the example project you linked they have
"SampleApp" : {
"Authority" : "http://localhost:9011",
"CookieName" : "sampleappcookie",
"ClientId" : "4420013f-bc5e-4d5a-9f94-f4b64ad5107c"
}
Does the json object have to be the name of the project, assembly, or namespace?
EDIT: Ah nevermind they are specifying it in the AddOpenIdConnect, where instead I am using the Client Object.