You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includes new fixed version of CRUD plugin and fixed configuration and connection issues.
99
+
100
+
### New Static Files System
101
+
102
+
The entire section is redone. Now, default configuration looks like this:
103
+
104
+
```jsonc
105
+
{
106
+
//
107
+
// Static files settings
108
+
//
109
+
"StaticFiles": {
110
+
"Enabled":false,
111
+
"RootPath":"wwwroot",
112
+
"ParseContentOptions": {
113
+
//
114
+
// Enable or disable the parsing of the static files.
115
+
// When enabled, the static files will be parsed and the tags will be replaced with the values from the claims collection.
116
+
//
117
+
"Enabled":false,
118
+
//
119
+
// List of static file patterns that will parse the content and replace the tags with the values from the claims collection.
120
+
// File paths are relative to the RootPath property and pattern matching is case-insensitive.
121
+
// Pattern can include wildcards or question marks. For example: *.html, *.htm, *.txt, *.json, *.xml, *.css, *.js
122
+
//
123
+
"FilePaths": [ "*.html" ],
124
+
//
125
+
// Tag name to be replaced with authenticated user id for example {userId}
126
+
//
127
+
"UserIdTag":"userId",
128
+
//
129
+
// Tag name to be replaced with authenticated user name
130
+
//
131
+
"UserNameTag":"userName",
132
+
//
133
+
// Tag name to be replaced with authenticated user roles
134
+
//
135
+
"UserRolesTag":"userRoles",
136
+
//
137
+
// Tag names to be replaced with the values from the claims collection
138
+
//
139
+
"CustomTagToClaimMappings": {}
140
+
}
141
+
}
142
+
}
143
+
```
144
+
145
+
Biggest changes:
146
+
147
+
- Keys `AnonymousPaths` and `LoginRedirectPath` are removed. They might return some day, but not today.
148
+
- New `ParseContentOptions` section. Implements high speed template parser to parse configured files with claim values from auth tokens. Use `{userId}` to replace with actual user id `"1213"` (JSON string value), user name `"john"` or array `["admin", "user"]` for user roles (JSON string array format).
149
+
150
+
### Versions
151
+
152
+
```
153
+
.NET 9.0.3
154
+
Client Build 2.17.0.0
155
+
Serilog.AspNetCore 9.0.0.0
156
+
Npgsql 9.0.3.0
157
+
NpgsqlRest 2.22.0.0
158
+
NpgsqlRest.HttpFiles 1.3.0.0
159
+
NpgsqlRest.TsClient 1.18.0.0
160
+
NpgsqlRest.CrudSource 1.3.0.0
161
+
```
97
162
98
163
## 2.16.0
99
164
100
-
### New option `ConnectionSettings.LogConnectionNoticeEventsMode`
165
+
### New option `ConnectionSettings.MatchNpgsqlConnectionParameterNamesWithEnvVarNames`
0 commit comments