diff --git a/.env.example b/.env.example index e85f8f62..4c6ddd0f 100644 --- a/.env.example +++ b/.env.example @@ -37,9 +37,6 @@ STRIPE_MONTHLY_PLAN=to_fill STRIPE_API=to_fill STRIPE_SECRET_KEY=to_fill -# Lyra analytics -LYRA_ANALYTICS_ID=to_fill - # OpenId key OPENID_PRIVATE_KEY_PATH=local_data/jwtRS256.key OPENID_PUBLIC_KEY_PATH=local_data/jwtRS256.key.pub diff --git a/app/config.py b/app/config.py index 68a8e139..90d932a8 100644 --- a/app/config.py +++ b/app/config.py @@ -66,9 +66,6 @@ STRIPE_SECRET_KEY = os.environ["STRIPE_SECRET_KEY"] STRIPE_YEARLY_PLAN = os.environ["STRIPE_YEARLY_PLAN"] STRIPE_MONTHLY_PLAN = os.environ["STRIPE_MONTHLY_PLAN"] -# Analytics -LYRA_ANALYTICS_ID = os.environ["LYRA_ANALYTICS_ID"] - # OpenID keys, used to sign id_token OPENID_PRIVATE_KEY_PATH = get_abs_path(os.environ["OPENID_PRIVATE_KEY_PATH"]) OPENID_PUBLIC_KEY_PATH = get_abs_path(os.environ["OPENID_PUBLIC_KEY_PATH"]) diff --git a/server.py b/server.py index 87d35e09..c7835448 100644 --- a/server.py +++ b/server.py @@ -19,10 +19,8 @@ from app.config import ( ENABLE_SENTRY, URL, SHA1, - LYRA_ANALYTICS_ID, STRIPE_SECRET_KEY, - RESET_DB, -) + RESET_DB) from app.dashboard.base import dashboard_bp from app.developer.base import developer_bp from app.discover.base import discover_bp @@ -105,6 +103,14 @@ def fake_data(): client1.published = True db.session.commit() + RedirectUri.create(client_id=client1.id, uri="https://ab.com") + + client2 = Client.create_new(name="Demo 2", user_id=user.id) + client2.oauth_client_id = "client-id2" + client2.oauth_client_secret = "client-secret2" + client2.published = True + db.session.commit() + db.session.commit() @@ -230,8 +236,7 @@ def jinja2_filter(app): YEAR=arrow.now().year, URL=URL, ENABLE_SENTRY=ENABLE_SENTRY, - VERSION=SHA1, - LYRA_ANALYTICS_ID=LYRA_ANALYTICS_ID, + VERSION=SHA1 ) diff --git a/templates/base.html b/templates/base.html index 8e4bc442..07e1526e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -59,11 +59,19 @@ - {% if LYRA_ANALYTICS_ID %} - - - {% endif %} + + + {% block head %} diff --git a/tests/env.test b/tests/env.test index d2e116fd..528d42b5 100644 --- a/tests/env.test +++ b/tests/env.test @@ -37,8 +37,6 @@ STRIPE_MONTHLY_PLAN=to_fill STRIPE_API=to_fill STRIPE_SECRET_KEY=to_fill -# Lyra analytics -LYRA_ANALYTICS_ID=to_fill # OpenId key OPENID_PRIVATE_KEY_PATH=local_data/jwtRS256.key