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
/// Context key that is used to set context variable for all available user claims.
128
+
/// When this option is not null, and user is authenticated, the user claims will be serialized to JSON value and set to the context variable.
129
+
/// </summary>
121
130
publicstring?ClaimsJsonContextKey{get;set;}=null;
122
131
123
132
/// <summary>
124
133
/// IP address context key that is used to set context variable for the IP address.
134
+
/// When this option is not null, the IP address will be set to the context variable when <see cref="UseUserContext"/> is enabled and even when user is not authenticated.
/// IP address parameter name that is used to set parameter value for the IP address.
149
-
/// Parameter name can be original or converted and it has to be the text type.
165
+
/// When this option is not null, the IP address will be set to the parameter when <see cref="UseUserContext"/> is enabled and even when user is not authenticated.
Copy file name to clipboardExpand all lines: NpgsqlRest/NpgsqlRestOptions.cs
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ public NpgsqlRestOptions(NpgsqlDataSource dataSource)
103
103
publicstring?UrlPathPrefix{get;set;}="/api";
104
104
105
105
/// <summary>
106
-
/// Custom function delegate that receives routine and options parameters and returns constructed URL path string for routine. Default is the default URL builder that transforms snake case names to kebab case names.
106
+
/// Custom function delegate that receives routine and options parameters and returns constructed URL path string for routine. Default the default URL builder that transforms snake case names to kebab case names.
/// Configure how to send request headers to PostgreSQL routines execution. `Ignore` (default) doesn't send any request headers to routines. `Context` sets a context variable for the current session `context.headers` containing JSON string with current request headers. This executes `set_config('context.headers', headers, false)` before any routine executions. `Parameter` sends request headers to the routine parameter defined with the `RequestHeadersParameterName` option. Parameter with this name must exist, must be one of the JSON or text types and must have the default value defined. This option for individual endpoints can be changed with the `EndpointCreated` function callback, or by using comment annotations.
203
+
/// Configure how to send request headers to PostgreSQL routines execution:
204
+
/// - `Ignore` (default) don't send any request headers to routines.
205
+
/// - `Context` sets a context variable for the current session `context.headers` containing JSON string with current request headers. This executes `set_config('context.headers', headers, false)` before any routine executions.
206
+
/// - `Parameter` sends request headers to the routine parameter defined with the `RequestHeadersParameterName` option. Parameter with this name must exist, must be one of the JSON or text types and must have the default value defined.
207
+
///
208
+
/// This option for individual endpoints can be changed with the `EndpointCreated` function callback, or by using comment annotations.
0 commit comments