Skip to content

Commit df20f49

Browse files
committed
Make generation fail if apple wallet certificate is expired
1 parent b918237 commit df20f49

File tree

3 files changed

+46
-28
lines changed

3 files changed

+46
-28
lines changed

app/util/apple_wallet.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,17 @@ def generate_pass(self, user_data: Dict[str, Any]) -> bytes:
171171

172172
try:
173173
# Generate the pass using passes_rs_py with all assets
174-
generate_pass(config_json, self.cert_path, self.key_path, output_path, self.icon_path, self.icon2x_path, self.logo_path, self.logo2x_path)
174+
generate_pass(
175+
config=config_json,
176+
cert_path=self.cert_path,
177+
key_path=self.key_path,
178+
output_path=output_path,
179+
icon_path=self.icon_path,
180+
icon2x_path=self.icon2x_path,
181+
logo_path=self.logo_path,
182+
logo2x_path=self.logo2x_path
183+
#ignore_expired=True # Add this if you want to ignore expired certificates
184+
)
175185

176186
# Read the generated pass file
177187
with open(output_path, "rb") as f:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"google-auth~=2.40.3",
1414
"jinja2==3.1.6",
1515
"joserfc==1.4.1",
16-
"passes-rs-py==3.0.1",
16+
"passes-rs-py==4.0.1",
1717
"pydantic~=2.11.7",
1818
"pydantic-settings~=2.10.1",
1919
"python-keycloak~=5.8.1",

uv.lock

Lines changed: 34 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)