Sha256: 0e6c5c135e3f34b18a62908f64f64d908abec07d9ce100c6ea879f98a73c0811

Contents?: true

Size: 995 Bytes

Versions: 15

Compression:

Stored size: 995 Bytes

Contents

module Doorkeeper
  module OpenidConnect
    module Errors
      class OpenidConnectError < StandardError
        def error_name
          self.class.name.demodulize.underscore
        end
      end

      # internal errors
      class InvalidConfiguration < OpenidConnectError; end
      class MissingConfiguration < OpenidConnectError
        def initialize
          super('Configuration for Doorkeeper OpenID Connect missing. Do you have doorkeeper_openid_connect initializer?')
        end
      end

      # OAuth 2.0 errors
      # https://tools.ietf.org/html/rfc6749#section-4.1.2.1
      class InvalidRequest < OpenidConnectError; end

      # OpenID Connect 1.0 errors
      # http://openid.net/specs/openid-connect-core-1_0.html#AuthError
      class LoginRequired < OpenidConnectError; end
      class ConsentRequired < OpenidConnectError; end
      class InteractionRequired < OpenidConnectError; end
      class AccountSelectionRequired < OpenidConnectError; end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.6.3 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.6.2 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.6.1 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.6.0 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.5.5 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.5.4 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.5.3 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.5.2 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.5.1 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.5.0 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.4.0 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.3.0 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.2.0 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.1.2 lib/doorkeeper/openid_connect/errors.rb
doorkeeper-openid_connect-1.1.1 lib/doorkeeper/openid_connect/errors.rb