diff --git a/src/satosa/frontends/openid_connect.py b/src/satosa/frontends/openid_connect.py index 40b6730d1..88041b373 100644 --- a/src/satosa/frontends/openid_connect.py +++ b/src/satosa/frontends/openid_connect.py @@ -72,7 +72,7 @@ def __init__(self, auth_req_callback_func, internal_attributes, conf, base_url, ) db_uri = self.config.get("db_uri") - self.stateless = StorageBase.type(db_uri) == "stateless" + self.stateless = db_uri and StorageBase.type(db_uri) == "stateless" self.user_db = ( StorageBase.from_uri(db_uri, db_name="satosa", collection="authz_codes") if db_uri and not self.stateless