inveniosoftware / invenio-oauthclient

Invenio module that provides OAuth web authorization support.
https://invenio-oauthclient.readthedocs.io
MIT License
6 stars 74 forks source link

models: "RemoteToken.access_token" visible in repr #161

Closed slint closed 6 years ago

slint commented 6 years ago

The RemoteToken.access_token variable is part of the repr string of the object which is problematic since one could use the access_token for performing any kind of authorized request on the remote application's API (e.g. GitHub).

It should generally be treated as a password field which means that it should not be displayed in plaintext in logs or any kind of object representation.