```ruby
class Api::Json::UsersController < Api::ApplicationController

  if Rails.env.production? || Rails.env.staging?
    ssl_required :show
  end

  def show
    user = current_user
    render :json => user.data
  end

  def get_authenticated_users
    render :json => request.session.select {|k,v| k.start_with?("warden.user")}.values
  end

end
```

Fix on users controller auth
user
```ruby
class Api::Json::UsersController < Api::ApplicationController
  skip_before_filter :api_authorization_required, only: [:get_authenticated_users]

  if Rails.env.production? || Rails.env.staging?
    ssl_required :show
  end

  def show
    user = current_user
    render json: user.data
  end

  def get_authenticated_users
    render json: request.session.select {|k,v| k.start_with?("warden.user")}.values
  end

end
```
assistant