wultra / networking-apple

A high-level networking SDK for PowerAuth-based endpoints.
Apache License 2.0
0 stars 0 forks source link

Add logger header filter option #57

Closed kober32 closed 2 months ago

kober32 commented 5 months ago

We should add an option to filter HTTP headers that are logged with the following options:

Current values are:

Incoming headers:

[WPN] - Headers: [("Expires", 0), ("Vary", Origin, Access-Control-Request-Method, Access-Control-Request-Headers), ("Pragma", no-cache), ("X-Frame-Options", DENY), ("Server", nginx/1.18.0 (Ubuntu)), ("Cache-Control", no-cache, no-store, max-age=0, must-revalidate), ("X-XSS-Protection", 0), ("Connection", keep-alive), ("X-Content-Type-Options", nosniff), ("Date", Mon, 18 Mar 2024 14:25:53 GMT), ("Transfer-Encoding", Identity), ("Content-Type", application/json)]

Outgoing headers:

[WPN] - Headers: [("X-PowerAuth-Token", "PowerAuth version=\"3.2\", token_id=\"c9a693f9-9dbf-47e8-82ed-140798a0034e\", token_digest=\"181CIOdZNfxdurHvgKijkv2L7cpL7nSlzJGP1HFX01o=\", nonce=\"rTFgYiw68YadY74fCacHGA==\", timestamp=\"1710771960099\""), ("Accept", "application/json"), ("Accept-Language", "en"), ("Content-Type", "application/json"), ("User-Agent", "PowerAuthNetworking/1.3.1 (en; unknown) com.wultra.app.MobileToken.wuat/1.0.0 (Apple; iOS/17.4; iphone13,2)")]
kober32 commented 2 months ago

This will be solved by #61