Skip to content

Commit

Permalink
Revise docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Sep 4, 2023
1 parent b381bba commit 8c8e00f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/nav/jwtconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ class JWTConf(NAVConfigParser):
NAV_SECTION = "nav"

def get_issuers_setting(self) -> Dict[str, Any]:
"""Parses the webfront/jwt.conf config file and produces a dictionary that can
be used as settings for the `drf-oidc-auth` django extension"""
"""Parses the webfront/jwt.conf config file and returns a dictionary that can
be used as settings for the `drf-oidc-auth` django extension.
If the parsing fails, an empty dict is returned.
"""
try:
external_settings = self._get_settings_for_external_tokens()
local_settings = self._get_settings_for_nav_issued_tokens()
Expand Down

0 comments on commit 8c8e00f

Please sign in to comment.