5,314 questions
0
votes
0
answers
20
views
How to Add Toast message after completion of AutoQueryGrid CRUD operation in Servicestack server blazor app template
In my project I am using servicestackserver blazor project template in that i am using AutoQueryGrid Component like given below <AutoQueryGrid Model="Booking" Apis="Apis.AutoQuery<...
0
votes
0
answers
46
views
ServiceStack ignores default values of DTO request objects
We have a GetDocuments request DTO which looks like this
public class Constants
{
public const int DefaultPageSize = 100;
public const int DefaultPageNumber = 1;
}
[Route("/documents&...
1
vote
0
answers
44
views
Problem with UI to using multiple provider of authenticate
I have this plugin declaration:
Plugins.Add(new AuthFeature(() => new CustomUserSession(),
new IAuthProvider[]
{
new CustomCredentialsAuthProvider(),
new ...
0
votes
0
answers
18
views
OrmLite/Npgsql Type Conversion Conflict with NodaTime.LocalTime
I hope you are doing well.
We are facing some critical issue in order to migrate to Postgres Sql. Below are the details of the issue that is happening.
Error Message:
Npgsql.PostgresException: 42883: ...
0
votes
0
answers
22
views
ServiceStack 8.5.2 System.TypeLoadException ServiceStack.UseSystemJson
Receiving this error if I build a docker image and try to start. My solution is using ServiceStack 8.5.2
Unhandled exception. System.TypeLoadException: Could not load type 'ServiceStack.UseSystemJson' ...
1
vote
1
answer
67
views
Servicestack v.8.6 anonymous type
I noticed that starting from ServiceStack version 8.6, it is no longer possible to use anonymous types when calling REST services (unless modifying AssemblyUtils.ValidateTypeName).
Currently, I create ...
0
votes
1
answer
88
views
How To Remove Microseconds Portion Of DateTime From ServiceStack Serialized Response?
I am using ServiceStack v8.5.2 and have configured the date handler as follows:-
JsConfig.DateHandler = DateHandler.ISO8601;
I have a response POCO which has a DateTime field and the serialized output ...
1
vote
0
answers
40
views
Service Stack .NET 8 API Keys Feature and AWS DynamoDB
Looking into creating a new API Project and using ServiceStack and deploying it via AWS SAM.
We want to use API Keys as part of our authorisation and authentication process.
The new NET 8 API Keys ...
1
vote
1
answer
59
views
ServiceStack and Windows Auth
I am using the latest version of ServiceStack (as of the time I am writing, version 8.5) and I need to integrate Windows Authentication into my application. I know that ServiceStack doesn't provide a ...
3
votes
1
answer
43
views
How to inject services dependent on ServiceStacks services in ConfigureServices method
We are trying to migrate our application using ServiceStack to .NET endpoints. We have some services dependent on ServiceStack functionality. However, the registration fails because the ServiceStack ...
1
vote
1
answer
51
views
Unit Test with Mock for a Response Object
I have a service; this service uses Response (IResponse) Object, this is the handler of service:
[LogRequestDto]
[LogResponseDto]
[RequiresAnyRole(Roles.EventWrite, Roles.EventAdmin)]
...
1
vote
1
answer
49
views
Configuring ServiceStack 8 to work with OpenIdConnect
In my ServiceStack 8 application using ASP.Net Identity configured for OpenIdConnect like so in program.cs:
builder.Services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = ...
0
votes
1
answer
46
views
ServiceStack.OrmLite for PostgreSQL returning lowercase property names for dynamic sql query that defines PascalCase column names
I have the following dynamic SQL query generated by my code:
SELECT
"public"."member_contact"."member_id" AS MemberId
, "public"."member_contact".&...
1
vote
1
answer
54
views
How do you change the default logging of JsonApiClient?
I am using the ServiceStack JsonApiClient to make service requests.
When the JsonApiClient encounters a non successful status code i.e. 500, it automatically (and rightly) logs at error level to my ...
2
votes
1
answer
111
views
"GenerateCrudServices.DbFactory is not configured" error in scaffolded ServiceStack template
I've just scaffolded a new blazor template with the latest version (v8.0.1) of the ServiceStack x tool using this command:
x new blazor && x mix ef-sqlserver autocrudgen
I get this error when ...
1
vote
1
answer
45
views
Does OrmLite's SelectMulti work with more than 7 tables?
I am using ServiceStack 8.2.2, c# and .net8 with postgres 16. I'm trying to use OrmLite's SelectMultiAsync with more than 7 tables.
If I specify a type for the last table, i.e.
var results = await Db....
1
vote
1
answer
63
views
Service Stack - Security XSS Query following pentest
We recently had a penetration test done, and one of the "high" items was the fact that our servicestack API will reflect back user input unmodified to the caller. E.g. I can send some ...
1
vote
1
answer
73
views
Loading views from different class library (RazorFormat)
We wish to be able to load Views from separate class libraries via RazorFormat.
We have tried setting:
Plugins.Add(new RazorFormat()
{
ViewLocations = paths.ToList(),
});
We have tried loading ...
1
vote
1
answer
42
views
OpenApiv3.0 with ServiceStack v5?
Is it possible to migrate to OpenApi v3.0 from OpenApiv2.0 while using ServiceStack v.5.10.4??
The official docs clearly state usage of ServiceStack v8.* but that would require a new license which im ...
1
vote
1
answer
27
views
Is it possible to link fhir models into auto query?
Is it possible to link fhir models into auto query?
Using the UI components and others to facilitate writing a blazor app
Want to use fhir and auto query to build a blazor app
Want to commit into a ...
1
vote
0
answers
46
views
ServiceStack OrmLite: Out of Memory when merging datasets
I want to create a product feed using the Merge() function from OrmLite but getting an out of memory exception. Our SQL Server database is quite big and we have multiple nested tables.
Could that be ...
1
vote
1
answer
100
views
Limiting models that are returned in OpenAPI specification
Using ApiDeclarationFilter we can remove paths from openapi specification without removing it from MetaData (/types/typescript for example).
SchemaFilter allows going through the models that are in ...
1
vote
0
answers
60
views
Inside of the devilbox container composer installation automat
Inside of the devilbox container When Composer is installing, it asks a yes/no prompt. How can I automate this process to choose yes ?
cakephp/plugin-installer contains a Composer plugin which is ...
1
vote
0
answers
268
views
Jenkinsfile : use podman to start services
I'm quite new to the containers world so I struggle with the context we're facing:
Our developers created a web stack using podman rootless, and the images of these services are stored on an ...
1
vote
1
answer
71
views
Disable BasicAuth fallback
According to the documentation:
https://docs.servicestack.net/auth/authentication-and-authorization#authenticating-with.net-service-clients
Although behind-the-scenes it ends up making 2 requests, 1st ...