Skip to content

Commit fee38d0

Browse files
committed
Fix OAuth scope.
[skip ci]
1 parent 419f5b2 commit fee38d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ serve: ## Serve Panel dashboard - Prod mode with basic auth. Needs: PANEL_TOKEN
5252
--static-dirs _static=docs/_static \
5353
--reuse-sessions --warm
5454

55-
serve-oauth: ## Serve Panel dashboard - Prod mode with OAuth2. Needs: PANEL_OAUTH_REDIRECT_URI, PANEL_OAUTH_KEY, PANEL_OAUTH_SECRET
56-
panel serve panel/app.py \
55+
serve-oauth: ## Serve Panel dashboard - Prod mode with OAuth2. Needs: PANEL_OAUTH_REDIRECT_URI, PANEL_OAUTH_KEY, PANEL_OAUTH_SECRET, PANEL_OAUTH_ENCRYPTION
56+
PANEL_OAUTH_SCOPE=email panel serve panel/app.py \
5757
--show \
5858
--cookie-secret panel_cookie_secret_oauth \
59+
--basic-login-template panel/login.html \
5960
--logout-template panel/logout.html \
6061
--oauth-provider google \
6162
--static-dirs _static=docs/_static \
@@ -117,6 +118,7 @@ production: publish-production
117118
--region=$(region) \
118119
--port=8080 \
119120
--set-env-vars ENV=production \
121+
--set-env-vars PANEL_OAUTH_SCOPE=email \
120122
--set-secrets=PANEL_OAUTH_REDIRECT_URI=PANEL_OAUTH_REDIRECT_URI:latest \
121123
--set-secrets=PANEL_OAUTH_KEY=PANEL_OAUTH_KEY:latest \
122124
--set-secrets=PANEL_OAUTH_SECRET=PANEL_OAUTH_SECRET:latest \

0 commit comments

Comments
 (0)