From 3f7adfa97bc8e07aa150099bc03d34064961fb52 Mon Sep 17 00:00:00 2001
From: xeruf <27jf@pm.me>
Date: Thu, 15 Feb 2024 11:56:51 +0100
Subject: [PATCH] apps/do: oauth for vikunja-test

---
 .../vikunja-secrets/vikunja-test-oauth-secret.yaml   | 12 ++++++++++++
 apps/do/vikunja-test/vikunja-oauth-client.yaml       |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 apps/do/vikunja-secrets/vikunja-test-oauth-secret.yaml

diff --git a/apps/do/vikunja-secrets/vikunja-test-oauth-secret.yaml b/apps/do/vikunja-secrets/vikunja-test-oauth-secret.yaml
new file mode 100644
index 0000000..ecfdae1
--- /dev/null
+++ b/apps/do/vikunja-secrets/vikunja-test-oauth-secret.yaml
@@ -0,0 +1,12 @@
+---
+apiVersion: secretgenerator.mittwald.de/v1alpha1
+kind: StringSecret
+metadata:
+  name: stackspin-vikunja-test-oauth-variables
+  namespace: flux-system
+spec:
+  data:
+    client_id: vikunja-test
+  fields:
+  - fieldName: client_secret
+    length: "32"
diff --git a/apps/do/vikunja-test/vikunja-oauth-client.yaml b/apps/do/vikunja-test/vikunja-oauth-client.yaml
index ff87152..28941ad 100644
--- a/apps/do/vikunja-test/vikunja-oauth-client.yaml
+++ b/apps/do/vikunja-test/vikunja-oauth-client.yaml
@@ -15,7 +15,7 @@ spec:
     - id_token
     - code
   scope: "openid profile email stackspin_roles"
-  secretName: stackspin-vikunja-oauth-variables
+  secretName: stackspin-vikunja-test-oauth-variables
   redirectUris:
     - https://test.${vikunja_domain}/auth/openid/stackspin
   tokenEndpointAuthMethod: client_secret_post
-- 
GitLab