Sha256: 9ec2ad05caa85e80e16156e6f5e755526ab6664000870fb3e947a6a80f7c1570

Contents?: true

Size: 436 Bytes

Versions: 7

Compression:

Stored size: 436 Bytes

Contents

module Devise
  module Oauth2Providable
    class Engine < Rails::Engine
      initializer "devise_oauth2_providable.initialize_application" do |app|
        app.config.filter_parameters << :client_secret
        app.middleware.use Rack::OAuth2::Server::Resource::Bearer, 'OAuth2 Bearer Token Resources' do |req|
          AccessToken.valid.find_by_token(req.access_token) || req.invalid_token!
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_oauth2_providable-0.2.0 lib/devise_oauth2_providable/engine.rb
devise_oauth2_providable-0.1.6 lib/devise_oauth2_providable/engine.rb
devise_oauth2_providable-0.1.5 lib/devise_oauth2_providable/engine.rb
devise_oauth2_providable-0.1.4 lib/devise_oauth2_providable/engine.rb
devise_oauth2_providable-0.1.3 lib/devise_oauth2_providable/engine.rb
devise_oauth2_providable-0.1.2 lib/devise_oauth2_providable/engine.rb
devise_oauth2_providable-0.1.1 lib/devise_oauth2_providable/engine.rb