diff --git a/.env.example b/.env.example index d4e2131..4d2e873 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=https://raw.githubusercontent.com/OpSecId/PyDentity-Wallet/refs/heads/main/assets/pydentity-logo.png +PYDENTITY_WALLET_APP_ICON=https://raw.githubusercontent.com/OpSecId/PyDentity-Wallet/refs/heads/main/assets/pydentity-icon.png +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..ca530d8 100644 --- a/app/routes/auth/__init__.py +++ b/app/routes/auth/__init__.py @@ -31,7 +31,9 @@ def index(): session.clear() session["endpoint"] = Config.APP_URL session["development"] = Config.TESTING - if Config.ENV == 'development': + 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()) wallet = await_(provision_wallet(session.get("client_id"))) @@ -39,7 +41,7 @@ def index(): wallet.get("token"), wallet.get("wallet_id"), ) - return redirect(url_for('main.index')) + return redirect(url_for("main.index")) return render_template("pages/auth.jinja", title=Config.APP_NAME) 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 @@