Files
documentdb/pg_documentdb
Jia Hu 7af0d99acf Merged PR 1534319: [DataApi] support authentication with password
### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Are you introducing any new config? If yes, do you have tests with and without them being set?

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description

add UDF mongo_api_internal.authenticate_with_pwd(p_usename text, p_password text)
output: Boolean

----
#### AI description  (iteration 1)
#### PR Classification
New feature

#### PR Summary
This pull request introduces support for user authentication using a password in the Data API.
- Added `command_authenticate_with_pwd` function in `src/auth/scram256.c` to handle password-based authentication.
- Created new SQL function `helio_api.authenticate_with_pwd` in `sql/udfs/auth/auth_scram--1.24-0.sql`.
- Updated test cases in `src/test/regress/sql/authentication_scram_sha_256.sql` and `src/test/regress/expected/authentication_scram_sha_256.out` to use the new `authenticate_with_pwd` function.
- Removed the old `test_helio_scram_sha256_dual_api` function from test files.

Related work items: #3316477, #3685426
2025-01-15 07:48:40 +00:00
..