From 88383706af5a62cd8a87b6ba0361af502581c487 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Sat, 28 Oct 2023 23:41:30 +0200
Subject: [PATCH] Add oauth patch

---
 debian/patches/oauth-fix.patch | 18 ++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 debian/patches/oauth-fix.patch
 create mode 100644 debian/patches/series

diff --git a/debian/patches/oauth-fix.patch b/debian/patches/oauth-fix.patch
new file mode 100644
index 0000000..f0ef01f
--- /dev/null
+++ b/debian/patches/oauth-fix.patch
@@ -0,0 +1,18 @@
+From: pierre-lehnen-rc <pierre-lehnen-rc@example.org>
+Date: Wed, 25 Oct 2023 22:30:00 +0200
+Subject: fix: oauth login by redirect failing on firefox
+
+Origin: https://github.com/RocketChat/Rocket.Chat/pull/30750
+---
+diff --git a/apps/meteor/app/custom-oauth/client/custom_oauth_client.js b/apps/meteor/app/custom-oauth/client/custom_oauth_client.js
+index a11277758438..c516f115aede 100644
+--- a/apps/meteor/app/custom-oauth/client/custom_oauth_client.js
++++ b/apps/meteor/app/custom-oauth/client/custom_oauth_client.js
+@@ -6,7 +6,6 @@ import { Meteor } from 'meteor/meteor';
+ import { OAuth } from 'meteor/oauth';
+ import { ServiceConfiguration } from 'meteor/service-configuration';
+ 
+-import './swapSessionStorage';
+ import { isURL } from '../../../lib/utils/isURL';
+ 
+ // Request custom OAuth credentials for the user
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..831c2b1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+oauth-fix.patch
-- 
GitLab