oidc-exchange: ignore a nested function
Signed-off-by: William Woodruff <william@trailofbits.com>
This commit is contained in:
parent
8bdd0cc2a0
commit
e5f0690e91
|
@ -146,7 +146,7 @@ def render_claims(token: str) -> str:
|
||||||
_, payload, _ = token.split(".", 2)
|
_, payload, _ = token.split(".", 2)
|
||||||
claims = json.loads(base64.urlsafe_b64decode(payload))
|
claims = json.loads(base64.urlsafe_b64decode(payload))
|
||||||
|
|
||||||
def _get(name: str) -> str:
|
def _get(name: str) -> str: # noqa: WPS430
|
||||||
return claims.get(name, "MISSING")
|
return claims.get(name, "MISSING")
|
||||||
|
|
||||||
return _RENDERED_CLAIMS.format(
|
return _RENDERED_CLAIMS.format(
|
||||||
|
|
Loading…
Reference in New Issue