From 181cea16f27534346c4113e31e8406aa65605a3d Mon Sep 17 00:00:00 2001 From: shivamg9 Date: Mon, 19 Feb 2024 18:16:27 +0530 Subject: [PATCH] Auth-Oauth: changed is to = --- src/openg2p_portal_api/models/orm/auth_oauth_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openg2p_portal_api/models/orm/auth_oauth_provider.py b/src/openg2p_portal_api/models/orm/auth_oauth_provider.py index 9cc1dab..d1e73de 100644 --- a/src/openg2p_portal_api/models/orm/auth_oauth_provider.py +++ b/src/openg2p_portal_api/models/orm/auth_oauth_provider.py @@ -88,7 +88,7 @@ async def get_auth_provider_from_iss(cls, iss: str) -> "AuthOauthProviderORM": select(cls) .where( and_( - cls.g2p_self_service_allowed is True, + cls.g2p_self_service_allowed == True, cls.token_endpoint.ilike(f"%{iss}%"), ) )