From 8ac5bc60b699424a11b5d1a08b2221cf3611ffe9 Mon Sep 17 00:00:00 2001 From: PatStLouis Date: Thu, 17 Jul 2025 20:30:48 +0000 Subject: [PATCH 1/3] add branding env var Signed-off-by: PatStLouis --- .env.example | 6 +++++- app/routes/auth/__init__.py | 2 ++ app/templates/components/head.jinja | 10 +++++----- app/templates/components/header.jinja | 2 +- app/templates/pages/auth.jinja | 2 +- {app/static/img => assets}/pydentity-icon.png | Bin {app/static/img => assets}/pydentity-logo.png | Bin config.py | 4 +++- 8 files changed, 17 insertions(+), 9 deletions(-) rename {app/static/img => assets}/pydentity-icon.png (100%) rename {app/static/img => assets}/pydentity-logo.png (100%) diff --git a/.env.example b/.env.example index d4e2131..ab4fa5e 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,7 @@ AGENT_ADMIN_API_KEY=pydentity AGENT_ADMIN_ENDPOINT=https://admin.dev.pydentity.net -NGROK_AUTHTOKEN=your-token-here \ No newline at end of file +NGROK_AUTHTOKEN=your-token-here + +PYDENTITY_WALLET_APP_LOGO= +PYDENTITY_WALLET_APP_ICON= +PYDENTITY_WALLET_APP_NAME="PyDentity Wallet" \ No newline at end of file diff --git a/app/routes/auth/__init__.py b/app/routes/auth/__init__.py index 070445e..8e2ef68 100644 --- a/app/routes/auth/__init__.py +++ b/app/routes/auth/__init__.py @@ -31,6 +31,8 @@ def index(): session.clear() session["endpoint"] = Config.APP_URL session["development"] = Config.TESTING + session["app_icon"] = Config.APP_ICON + session["app_logo"] = Config.APP_LOGO if Config.ENV == 'development': # For development, we bypass the webauthn auth flow session["client_id"] = str(uuid.uuid4()) diff --git a/app/templates/components/head.jinja b/app/templates/components/head.jinja index 596d6ec..24b4baf 100644 --- a/app/templates/components/head.jinja +++ b/app/templates/components/head.jinja @@ -10,20 +10,20 @@ - - + + - + - + - + diff --git a/app/templates/components/header.jinja b/app/templates/components/header.jinja index a3c49b9..8081634 100644 --- a/app/templates/components/header.jinja +++ b/app/templates/components/header.jinja @@ -3,7 +3,7 @@