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-2.2.1 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.2.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.1.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.0.1 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.0.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.0.0.rc3 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.0.0.rc2 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-2.0.0.rc1 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.21.3 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.21.2 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.21.1 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.21.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.20.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.19.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.18.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.17.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.16.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.15.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.14.0 lib/rack/oauth2/server/resource/bearer/error.rb
rack-oauth2-1.13.0 lib/rack/oauth2/server/resource/bearer/error.rb