Skip to content

Commit 3eefa76

Browse files
committed
fi: deactive audience verification
1 parent 5b455e7 commit 3eefa76

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,16 @@ async def _get_algorithms(self) -> List[str]:
6464
oidc_config = await self._get_openid_configuration()
6565
return await asyncio.to_thread(self._discovery.signing_algos, oidc_config)
6666

67-
async def _decode_token(
68-
self, token: str, *, audience: Optional[str] = None
69-
) -> Dict[str, Any]:
67+
async def _decode_token(self, token: str) -> Dict[str, Any]:
7068
oidc_config = await self._get_openid_configuration()
7169
jwks = await self._get_jwks()
7270
algorithms = await self._get_algorithms()
7371
return jwt.decode(
7472
token,
7573
jwks,
7674
algorithms=algorithms,
77-
audience=audience or self.client_id,
7875
issuer=oidc_config.get("issuer", self.base_url),
79-
options={"verify_at_hash": False},
76+
options={"verify_aud": False, "verify_at_hash": False},
8077
)
8178

8279
async def get_auth_url(

0 commit comments

Comments
 (0)