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

Add webauthn initializer

Klaus Zanders716c1bc406f3
diff --git a/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb b/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb
index a3722993636..813987f06e7 100644
--- a/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb
+++ b/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb
@@ -60,6 +60,13 @@ module OpenProject::TwoFactorAuthentication
}) do
two_factor_authentication_request_path
end
+
+ config.after_initialize do
+ WebAuthn.configure do |config|
+ config.origin = "https://auth.example.com"
+ config.rp_name = "Example Inc."
+ end
+ end
end
end
end