Sha256: 69418fdc3912b1366455dd79a233a53650300e0b31363df48379a3981a68f837

Contents?: true

Size: 1.47 KB

Versions: 55

Compression:

Stored size: 1.47 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

55 entries across 55 versions & 5 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/dummy/config/routes.rb
doorkeeper-sequel-1.5.0 spec/dummy/config/routes.rb
doorkeeper-4.4.3 spec/dummy/config/routes.rb
doorkeeper-4.4.2 spec/dummy/config/routes.rb
doorkeeper-4.4.1 spec/dummy/config/routes.rb
doorkeeper-4.4.0 spec/dummy/config/routes.rb
doorkeeper-mongodb-4.1.0 spec/dummy/config/routes.rb
doorkeeper-4.3.2 spec/dummy/config/routes.rb
doorkeeper-4.3.1 spec/dummy/config/routes.rb
doorkeeper-4.3.0 spec/dummy/config/routes.rb
doorkeeper-sequel-1.4.0 spec/dummy/config/routes.rb
doorkeeper-mongodb-4.0.1 spec/dummy/config/routes.rb
doorkeeper-mongodb-4.0.0 spec/dummy/config/routes.rb
doorkeeper-grants_assertion-0.1.0 spec/dummy/config/routes.rb
doorkeeper-sequel-1.3.1 spec/dummy/config/routes.rb
doorkeeper-sequel-1.3.0 spec/dummy/config/routes.rb
doorkeeper-sequel-1.2.3 spec/dummy/config/routes.rb
doorkeeper-sequel-1.2.2 spec/dummy/config/routes.rb
doorkeeper-4.2.6 spec/dummy/config/routes.rb
doorkeeper-4.2.5 spec/dummy/config/routes.rb