Ruby on Rails
Requirements
Installation & Configuration
1
bundle add aikido-zenrequire "aikido-zen"
Aikido::Zen.protect!
Bundler.require(*Rails.groups)2
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
private
def authenticate_user!
# your authentication logic
# ...
Aikido::Zen.set_user(
id: current_user.id,
name: current_user.name
)
end
end3
AIKIDO_BLOCK=false AIKIDO_TOKEN=AIK_RUNTIME_ bundle exec rails sAIKIDO_TOKEN=AIK_RUNTIME_AIKIDO_BLOCK=false# config/credentials.yml.enc
zen:
token: "AIKIDO_RUNTIME_..."# config/initializers/zen.rb
Rails.application.config.zen.token = Rails.application.credentials.zen.token4

5


You are rate limited by Aikido firewall. (Your IP: 1.2.3.4)6
Last updated
Was this helpful?