From 63b7b91aadac3254795d810f20f53d1410ba28d3 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 10 Sep 2025 15:21:19 +0530 Subject: [PATCH] feat: add slo route --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 5fc602e0b..7e1e4e25f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,6 +8,9 @@ Rails.application.routes.draw do omniauth_callbacks: 'devise_overrides/omniauth_callbacks' }, via: [:get, :post] + # SAML SLO endpoint - handled by OmniAuth SAML strategy + post '/auth/saml/slo', to: 'devise_overrides/omniauth_callbacks#passthru' + ## renders the frontend paths only if its not an api only server if ActiveModel::Type::Boolean.new.cast(ENV.fetch('CW_API_ONLY_SERVER', false)) root to: 'api#index'