pkkid / python-plexapi

Python bindings for the Plex API.
BSD 3-Clause "New" or "Revised" License
1.15k stars 198 forks source link

Block out Plex Token #1140

Closed ravensorb closed 1 month ago

ravensorb commented 1 year ago

What is your feature request?

Add ability to blockout or obfuscate the Plex Token from all URLs in the plexapi object hierarchy.

Are there any workarounds?

Manually iterating through all objects and properties and removing it manyally

Code Snippets

plexServer = PlexServer(serverUrl, token, hideToken=True)

Additional Context

This would help for logging, diagnostics, and all around security.

JonnyWong16 commented 1 year ago

Could you clarify what you are trying to achieve? This sounds like an XY problem.

Hellowlol commented 1 year ago

Yeah, really bad attempt imo.

There no way to remove the token. You can use the SecretsFilter if you want something removed from the logging