Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openidc_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, app_identifier, id_provider, id_provider_mapping,
self.client_secret = client_secret
self.useragent = useragent or 'python-openid-client/%s' % \
release.VERSION
self.cachedir = os.path.expanduser(cachedir or '~/.openidc')
self.cachedir = os.path.expanduser(cachedir or '~/.local/state/openidc')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the XDG Base Directory Specification, this should try to read the $XDG_CACHE_HOME environment variable first, and if that is unset then fall back to $HOME/.cache.

self.last_returned_uuid = None
self.problem_reported = False
self.token_to_try = None
Expand Down