Fix the x5c header in our registry jwts.
This commit is contained in:
parent
d6b73a41de
commit
4266ae7ce5
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ def build_context_and_subject(user, token, oauthtoken):
|
||||||
@lru_cache(maxsize=1)
|
@lru_cache(maxsize=1)
|
||||||
def _load_certificate_bytes(certificate_file_path):
|
def _load_certificate_bytes(certificate_file_path):
|
||||||
with open(certificate_file_path) as cert_file:
|
with open(certificate_file_path) as cert_file:
|
||||||
return ''.join(cert_file.readlines()[1:-1]).rstrip('\n')
|
cert_lines = cert_file.readlines()[1:-1]
|
||||||
|
return ''.join([cert_line.rstrip('\n') for cert_line in cert_lines])
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=1)
|
@lru_cache(maxsize=1)
|
||||||
|
|
Reference in a new issue