Skip to content

Commit

Permalink
Merge branch 'main' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Jan 8, 2024
2 parents 9b315b9 + 54c669a commit cc0bb47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/src/appointment/controller/apis/fxa_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import logging
import os
from typing import Dict

from requests_oauthlib import OAuth2Session
import requests
Expand Down Expand Up @@ -155,5 +156,7 @@ def logout(self):
resp.raise_for_status()
return resp

def get_jwk(self):
return requests.get(self.config.jwks_url).json()
def get_jwk(self) -> Dict:
"""Retrieve the keys object on the jwks url"""
response = requests.get(self.config.jwks_url).json()
return response.get('keys', [])

0 comments on commit cc0bb47

Please sign in to comment.