mirror of
https://github.com/we-promise/sure.git
synced 2026-04-16 10:34:09 +00:00
fix/qol: Add Callback URL the Enable Banking Instructions (#1060)
* fix/qol: Add wich Callback URL to use to the Enable Banking Instructions * CodeRabbit suggestion * CodeRabbit suggestion * Skip CI failure on findings --------- Co-authored-by: Juan José Mata <jjmata@jjmata.com>
This commit is contained in:
committed by
GitHub
parent
4ba90e0e8a
commit
98df0d301a
@@ -540,13 +540,8 @@ class EnableBankingItemsController < ApplicationController
|
||||
)
|
||||
end
|
||||
|
||||
# Generate the callback URL for Enable Banking OAuth
|
||||
# In production, uses the standard Rails route
|
||||
# In development, uses DEV_WEBHOOKS_URL if set (e.g., ngrok URL)
|
||||
def enable_banking_callback_url
|
||||
return callback_enable_banking_items_url if Rails.env.production?
|
||||
|
||||
ENV.fetch("DEV_WEBHOOKS_URL", root_url.chomp("/")) + "/enable_banking_items/callback"
|
||||
helpers.enable_banking_callback_url
|
||||
end
|
||||
|
||||
# Validate redirect URLs from Enable Banking API to prevent open redirect attacks
|
||||
|
||||
Reference in New Issue
Block a user