user_agent_test_bearer_auth_controller.rb 325 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class UserAgentTestBearerAuthController < UserAgentTestController
  3. before_action :authenticate
  4. private
  5. def authenticate
  6. authenticate_or_request_with_http_token do |token, _options|
  7. token == ENV['CI_BEARER_TOKEN']
  8. end
  9. end
  10. end