Skip to content

Commit 1fbfd57

Browse files
samhotepSamuel Olwe
and
Samuel Olwe
authored
feat: Use canonical launchpad group on prod (#158)
* feat: Use canonical launchpad group on prod * feat: demos in debug mode by default --------- Co-authored-by: Samuel Olwe <[email protected]>
1 parent 32d0dc2 commit 1fbfd57

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

konf/site.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,6 @@ demo:
149149
secretKeyRef:
150150
key: google-private-key-id
151151
name: cs-canonical-com
152+
153+
- name: FLASK_DEBUG
154+
value: "1"

webapp/sso.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
from webapp.models import User
88

99
SSO_LOGIN_URL = "https://login.ubuntu.com"
10-
SSO_TEAM = "canonical-webmonkeys"
10+
SSO_TEAM = (
11+
"canonical-webmonkeys" if os.environ.get("FLASK_DEBUG") else "canonical"
12+
)
1113
DISABLE_SSO = os.environ.get("DISABLE_SSO")
1214

1315

0 commit comments

Comments
 (0)