Repository navigation
Added
-
Per-row
pathinnamed_credential_request_col.named_credential_request_col(request, body=None, path=None)(andSparkNamedCredential.request_col) accepts an optional per-rowpathColumn that is appended torequest.url, so each row can call a different endpoint of the same Named Credential (for example, per-entity REST lookups). A path not starting with/or?is joined with/. A null or empty value usesrequest.urlas is. The Named Credential itself cannot be changed per row.from pyspark.sql.functions import col, concat, lit from datacustomcode.client import named_credential_request_col df = df.withColumn( "result", named_credential_request_col(request, path=concat(lit("?id="), col("id__c"))), )
Omitting
pathkeeps the existing behavior.
Security
- PKCE and
statevalidation for the browser OAuth login. The authorization-code flow now sends a PKCE (RFC 7636, S256) code challenge and checks thestateparameter on the local callback. Callbacks with a missing or mismatchedstateare rejected. - Secrets are redacted from debug logs.
Authorization,Proxy-Authorization,Cookie, andSet-Cookieheader values are logged as[REDACTED], and request keyword arguments are logged by name only.
Changed
- Clearer function signature-mismatch error on
deploy. The error now lists the supported Request/Response pairs instead of naming only the search-index chunking types. initfor functions uses the template's sampletests/test.jsonwhen the template ships one. It falls back to generating a test file from the request model only if the template has none.