Sha256: 3cb45adc815f5098ca8f7b02201eb1c1dc1ee3e973d8ed60c39937cba2481730

Contents?: true

Size: 549 Bytes

Versions: 108

Compression:

Stored size: 549 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Resource
        class Bearer
          class Unauthorized < Resource::Unauthorized
            def scheme
              :Bearer
            end
          end

          module ErrorMethods
            include Resource::ErrorMethods
            def unauthorized!(error = nil, description = nil, options = {})
              raise Unauthorized.new(error, description, options)
            end
          end

          Request.send :include, ErrorMethods
        end
      end
    end
  end
end

Version data entries

108 entries across 108 versions & 2 rubygems

Version Path
rack-oauth2-0.9.5 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.9.4 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.9.3 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.9.2 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.9.1 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.9.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.9.0.alpha lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.7 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.6 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.5 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.4 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.3 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.2 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.1 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.8.0.alpha lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.7.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.6.9 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.6.8 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-0.6.7 lib/rack/oauth2/server/resource/bearer/error.rb