From 1c57128f11bd182c3237120c5d79e06785426e33 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 13 Sep 2020 23:42:45 +0200 Subject: [PATCH] providers/oauth2: fix token to code_token --- helm/templates/web-deployment.yaml | 2 -- passbook/providers/oauth2/views/authorize.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/helm/templates/web-deployment.yaml b/helm/templates/web-deployment.yaml index a0db9ccfd..4ee223554 100644 --- a/helm/templates/web-deployment.yaml +++ b/helm/templates/web-deployment.yaml @@ -25,7 +25,6 @@ spec: initContainers: - name: passbook-database-migrations image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" - imagePullPolicy: Always args: [migrate] envFrom: - configMapRef: @@ -50,7 +49,6 @@ spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" - imagePullPolicy: Always args: [server] envFrom: - configMapRef: diff --git a/passbook/providers/oauth2/views/authorize.py b/passbook/providers/oauth2/views/authorize.py index ca0a2a563..227ab97e6 100644 --- a/passbook/providers/oauth2/views/authorize.py +++ b/passbook/providers/oauth2/views/authorize.py @@ -95,7 +95,7 @@ class OAuthAuthorizationParams: elif response_type in [ ResponseTypes.ID_TOKEN, ResponseTypes.ID_TOKEN_TOKEN, - ResponseTypes.TOKEN, + ResponseTypes.CODE_TOKEN, ]: grant_type = GrantTypes.IMPLICIT elif response_type in [