Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
roblambell committed Dec 11, 2024
1 parent 221d9c3 commit 7d25c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/plugins/dispatch_core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class AwsAlbAuthProviderPlugin(AuthenticationProviderPlugin):

@cached(cache=TTLCache(maxsize=1024, ttl=DISPATCH_AUTHENTICATION_PROVIDER_AWS_ALB_PUBLIC_KEY_CACHE_SECONDS))
def get_public_key(self, kid: str, region: str):
log.debug(f"Cache miss. Requesting key from AWS endpoint.")
log.debug("Cache miss. Requesting key from AWS endpoint.")
url = f"https://public-keys.auth.elb.{region}.amazonaws.com/{kid}"
req = requests.get(url)
return req.text
Expand All @@ -193,7 +193,7 @@ def get_current_user(self, request: Request, **kwargs):
encoded_jwt: str = request.headers.get('x-amzn-oidc-data')
if not encoded_jwt:
log.error(
f"Unable to authenticate. Header x-amzn-oidc-data not found."
"Unable to authenticate. Header x-amzn-oidc-data not found."
)
raise credentials_exception

Expand Down

0 comments on commit 7d25c91

Please sign in to comment.