-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Custom Script for Logged Out Users seems looped #14436
Copy link
Copy link
Closed
Description
Description:
Hi I try to use "Custom Script for Logged Out Users" feature. My goal is to logout from Keycloak oauth during logout from Rocekt Chat.
My code looking like this:
window.location.href = "https://(my keycloak url)/logout?redirect_uri=(my rocket chat url)";
After logout redirect works but is looping infinity, refresh page without end.
Ther is any possibility to run this code once?
Steps to reproduce:
- Go to Administration -> Layout -> Custom Scripts
- Paste code to move another page and redirect to Rocket Chat page
Expected behavior:
Script is run only once.
Actual behavior:
Redirect is looping infinity
Server Setup Information:
- Version of Rocket.Chat Server: 1.0.1
- Operating System: Centos 7
- Deployment Method: docker compose
- Number of Running Instances: 9
- DB Replicaset Oplog: yes
- NodeJS Version: 8.11.4 - x64
- MongoDB Version: 4.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels