accept_attribute_as_json :scopes, Array
before_filter :current_api_client_is_trusted
before_filter :admin_required, :only => :create_system_auth
accept_attribute_as_json :scopes, Array
before_filter :current_api_client_is_trusted
before_filter :admin_required, :only => :create_system_auth
new(user_id: system_user.id,
api_client_id: params[:api_client_id] || current_api_client.andand.id,
created_by_ip_address: remote_ip,
scopes: Oj.load(params[:scopes] || '["all"]'))
new(user_id: system_user.id,
api_client_id: params[:api_client_id] || current_api_client.andand.id,
created_by_ip_address: remote_ip,
scopes: Oj.load(params[:scopes] || '["all"]'))