Sha256: 2a6116a4949c09523c8bb2a5809ed84c90eb9da6a5f5f07dc020c70f14d4883a

Contents?: true

Size: 1.54 KB

Versions: 6

Compression:

Stored size: 1.54 KB

Contents

Rails.application.routes.draw do
  use_doorkeeper
  use_doorkeeper :scope => 'scope'

  scope 'inner_space' do
    use_doorkeeper :scope => 'scope' do
      controllers :authorizations => 'custom_authorizations',
                  :tokens => 'custom_authorizations',
                  :applications => 'custom_authorizations',
                  :token_info => 'custom_authorizations'

      as :authorizations => 'custom_auth',
         :tokens => 'custom_token',
         :token_info => 'custom_token_info'
    end
  end

  scope 'space' do
    use_doorkeeper do
      controllers :authorizations => 'custom_authorizations',
                  :tokens => 'custom_authorizations',
                  :applications => 'custom_authorizations',
                  :token_info => 'custom_authorizations'

      as :authorizations => 'custom_auth',
         :tokens => 'custom_token',
         :token_info => 'custom_token_info'
    end
  end

  scope 'outer_space' do
    use_doorkeeper do
      controllers :authorizations => 'custom_authorizations',
                  :tokens => 'custom_authorizations',
                  :token_info => 'custom_authorizations'

      as :authorizations => 'custom_auth',
         :tokens => 'custom_token',
         :token_info => 'custom_token_info'

      skip_controllers :tokens, :applications, :token_info
    end
  end

  get 'metal.json' => 'metal#index'

  get '/callback', :to => "home#callback"
  get '/sign_in',  :to => "home#sign_in"
  resources :semi_protected_resources
  resources :full_protected_resources
  root :to => "home#index"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doorkeeper-1.1.0 spec/dummy/config/routes.rb
doorkeeper-1.0.0 spec/dummy/config/routes.rb
doorkeeper-1.0.0.rc2 spec/dummy/config/routes.rb
doorkeeper-1.0.0.rc1 spec/dummy/config/routes.rb
doorkeeper-0.7.4 spec/dummy/config/routes.rb
doorkeeper-0.7.3 spec/dummy/config/routes.rb