From 985e5a8c41ce102abe69a2db2f67634829ff8b04 Mon Sep 17 00:00:00 2001 From: Wiktor Przybylski Date: Wed, 22 Nov 2023 14:55:23 +0100 Subject: [PATCH] docker image workflow + access token type --- .github/workflows/docker-image.yml | 6 ++++-- auth/backend.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 12108d4..a45bd97 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,8 +1,10 @@ name: Create and publish Docker images on: - release: - types: [published] + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] env: REGISTRY: ghcr.io diff --git a/auth/backend.py b/auth/backend.py index 8a446e5..f3d554f 100644 --- a/auth/backend.py +++ b/auth/backend.py @@ -7,6 +7,7 @@ class HSWawOAuth2(BaseOAuth2): ID_KEY = 'username' AUTHORIZATION_URL = 'https://auth.apps.hskrk.pl/application/o/authorize/' ACCESS_TOKEN_URL = 'http://authentik:9000/application/o/token/' + ACCESS_TOKEN_METHOD = 'GET' DEFAULT_SCOPE = ['profile:read'] REDIRECT_STATE = False SCOPE_SEPARATOR = ','