Revision: 837
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=837
Author: iank
Date: 2025-07-10 19:23:46 -0400 (Thu, 10 Jul 2025)
Log Message:
-----------
document discourse gem edit
Modified Paths:
--------------
trunk/sviki/fsf/services/discourse.mdwn
Modified: trunk/sviki/fsf/services/discourse.mdwn
===================================================================
--- trunk/sviki/fsf/services/discourse.mdwn 2025-07-01 18:15:49 UTC (rev
836)
+++ trunk/sviki/fsf/services/discourse.mdwn 2025-07-10 23:23:46 UTC (rev
837)
@@ -186,6 +186,35 @@
Start the server with `systemctl start discourse_cas_sso`.
+
+Edit the file
+`boardforum1p.fsf.org:/usr/share/rvm/gems/ruby-2.3.8/gems/omniauth-cas-1.1.1/lib/omniauth/strategies/cas.rb`
+
+the function
+
+ def return_url
+ # If the request already has a `url` parameter, then it will already
be appended to the callback URL.
+ if request.params && request.params['url']
+ {}
+ else
+ { url: request.referer }
+ end
+ end
+
+Needs to be changed to
+
+ def return_url
+ # If the request already has a `url` parameter, then it will already
be appended to the callback URL.
+ if request.params && request.params['url']
+ {}
+ else
+ # { url: request.referer }
+ { url: "/" }
+ end
+ end
+
+Otherwise users will have to login twice to get authenticated.
+
### Enabling / disabling SSO
#### Disabling