mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-09 06:22:57 +00:00
sq
This commit is contained in:
@@ -466,11 +466,11 @@ MC4CAQAwBQYDK2VwBCIEID/Drmc1AA6U/znNRWpF3zEGegOATQxfkdWxitcOMsIH
|
||||
encode_hadron_token(&claims, key_pair_2.serialize_pem().as_bytes()).unwrap();
|
||||
|
||||
// Verify that we can decode the token with matching decoding keys (decoding also verifies the signature).
|
||||
assert_eq!(auth.decode(&encoded_1).unwrap().claims, claims);
|
||||
assert_eq!(auth.decode(&encoded_2).unwrap().claims, claims);
|
||||
assert_eq!(auth_cert_1.decode(&encoded_1).unwrap().claims, claims);
|
||||
assert_eq!(auth.decode::<Claims>(&encoded_1).unwrap().claims, claims);
|
||||
assert_eq!(auth.decode::<Claims>(&encoded_2).unwrap().claims, claims);
|
||||
assert_eq!(auth_cert_1.decode::<Claims>(&encoded_1).unwrap().claims, claims);
|
||||
|
||||
// Verify that the token cannot be decoded with a mismatched decode key.
|
||||
assert!(auth_cert_1.decode(&encoded_2).is_err());
|
||||
assert!(auth_cert_1.decode::<Claims>(&encoded_2).is_err());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,6 @@ pub fn run_server(os: NodeOs, disk: Arc<SafekeeperDisk>) -> Result<()> {
|
||||
wal_backup_enabled: false,
|
||||
listen_pg_addr_tenant_only: None,
|
||||
advertise_pg_addr: None,
|
||||
advertise_pg_addr_tenant_only: None,
|
||||
availability_zone: None,
|
||||
peer_recovery_enabled: false,
|
||||
backup_parallel_jobs: 0,
|
||||
|
||||
Reference in New Issue
Block a user