python-plexapi icon indicating copy to clipboard operation
python-plexapi copied to clipboard

Block out Plex Token

Open ravensorb opened this issue 2 years ago • 2 comments

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.

ravensorb avatar Apr 11 '23 17:04 ravensorb

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

JonnyWong16 avatar Apr 12 '23 19:04 JonnyWong16

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

Hellowlol avatar Apr 12 '23 20:04 Hellowlol