Handle empty backchannel logout urls
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
Dan Milne
2025-11-27 19:19:34 +11:00
parent f8543f98cc
commit 7af8624bf8

View File

@@ -43,6 +43,10 @@ class Application < ApplicationRecord
normalized = pattern&.strip&.downcase normalized = pattern&.strip&.downcase
normalized.blank? ? nil : normalized normalized.blank? ? nil : normalized
} }
normalizes :backchannel_logout_uri, with: ->(uri) {
normalized = uri&.strip
normalized.blank? ? nil : normalized
}
before_validation :generate_client_credentials, on: :create, if: :oidc? before_validation :generate_client_credentials, on: :create, if: :oidc?