Open ThisIsMani opened 4 days ago
This PR will add logging for cookies and also make signout API accessible by any SPT.
config/config.example.toml config/deployments/integration_test.toml config/deployments/production.toml config/deployments/sandbox.toml config/development.toml config/docker_compose.toml loadtest/config/development.toml
config/config.example.toml
config/deployments/integration_test.toml
config/deployments/production.toml
config/deployments/sandbox.toml
config/development.toml
config/docker_compose.toml
loadtest/config/development.toml
Closes #6598.
This following behaviour applies only to integ and not for sandbox and prod.
curl --location 'http://localhost:8080/user' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNzJkNDU0YTAtM2I3YS00MzZiLTllNjMtMmU5ZDQ5YzI3NmZjIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzMxOTI4MDg1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMjEwMDg5MSwib3JnX2lkIjoib3JnX05qeWR3eXhpRW5OQjk2QldobjlwIiwicHJvZmlsZV9pZCI6InByb183bGVMTnpFakVtRWVha1ZKTlJSbSJ9.g7InEVOcYqKSh2zNPBrq20l6O5MppE3-wKqj2YYBkBM'
If cookie is not present even if the auth header is present, BE will throw the following error
{ "error": { "type": "invalid_request", "message": "Invalid Cookie", "code": "IR_26" } }
If cookie will be given priority if both are present.
cargo +nightly fmt --all
cargo clippy
Review changes with
Type of Change
Description
This PR will add logging for cookies and also make signout API accessible by any SPT.
Additional Changes
config/config.example.toml
config/deployments/integration_test.toml
config/deployments/production.toml
config/deployments/sandbox.toml
config/development.toml
config/docker_compose.toml
loadtest/config/development.toml
Motivation and Context
Closes #6598.
How did you test it?
This following behaviour applies only to integ and not for sandbox and prod.
If cookie is not present even if the auth header is present, BE will throw the following error
If cookie will be given priority if both are present.
Checklist
cargo +nightly fmt --all
cargo clippy