privacyidea / privacyidea

@@ -154,7 +154,7 @@
Loading
154 154
            proxies["https"] = self.smsgateway.option_dict.get(FIREBASE_CONFIG.HTTPS_PROXY)
155 155
        a = self.smsgateway.option_dict.get(FIREBASE_CONFIG.JSON_CONFIG)
156 156
        with open(a) as f:
157 -
            server_config = json.loads(f)
157 +
            server_config = json.load(f)
158 158
        url = FIREBASE_URL_SEND.format(server_config["project_id"])
159 159
        resp = authed_session.post(url, data=json.dumps(fcm_message), headers=headers, proxies=proxies)
160 160
@@ -175,7 +175,7 @@
Loading
175 175
        json_file = self.smsgateway.option_dict.get(FIREBASE_CONFIG.JSON_CONFIG)
176 176
        server_config = None
177 177
        with open(json_file) as f:
178 -
            server_config = json.loads(f)
178 +
            server_config = json.load(f)
179 179
        if server_config:
180 180
            if server_config.get("type") != "service_account":
181 181
                raise ConfigAdminError(description="The JSON file is not a valid firebase credentials file.")
Files Coverage
privacyidea 96.13%
Project Totals (166 files) 96.13%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading