Sha256: 441e0e76eed88f322ca5eef163e9da4f549b0f20b9d02a29a6484198261226a6

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

class AutomaticAuthenticationController < ApplicationController

  def o_auth
    render json: {
      record: DummyRecordWithOauth.find(1).as_json,
      records: DummyRecordWithOauth.where(color: 'blue').as_json
    }
  end

  def o_auth_with_multiple_providers
    render json: {
      record: DummyRecordWithMultipleOauthProviders1.find(1).as_json,
      records: DummyRecordWithMultipleOauthProviders2.where(color: 'blue').as_json,
      per_endpoint: {
        record: DummyRecordWithMultipleOauthProvidersPerEndpoint.find(1).as_json,
        records: DummyRecordWithMultipleOauthProvidersPerEndpoint.where(color: 'blue').as_json
      }
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lhs-21.3.0 spec/dummy/app/controllers/automatic_authentication_controller.rb