Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow unauthenticated access to bcf auth endpoint

Oliver Günther8504dba797ad
diff --git a/modules/bim/app/controllers/bim/bcf/api/v2_1/auth_api.rb b/modules/bim/app/controllers/bim/bcf/api/v2_1/auth_api.rb
index 799b8d47c8c..5ded364b499 100644
--- a/modules/bim/app/controllers/bim/bcf/api/v2_1/auth_api.rb
+++ b/modules/bim/app/controllers/bim/bcf/api/v2_1/auth_api.rb
@@ -29,6 +29,12 @@
module Bim::Bcf::API::V2_1
class AuthAPI < ::API::OpenProjectAPI
resources :auth do
+ helpers do
+ def allowed_unauthenticated_route?
+ true
+ end
+ end
+
get do
::Bim::Bcf::API::V2_1::Auth::SingleRepresenter.new(nil)
end