Sha256: 9114394f5d0bb92284e18dfddc8cf3f341d7e8c761a1bb1e0c7ebe2f4c609eb0
Contents?: true
Size: 1.85 KB
Versions: 2
Compression:
Stored size: 1.85 KB
Contents
# frozen_string_literal: true module Doorkeeper module Errors class DoorkeeperError < StandardError def type message end end class InvalidGrantReuse < DoorkeeperError def type :invalid_grant end end class InvalidTokenStrategy < DoorkeeperError def type :unsupported_grant_type end end class MissingRequiredParameter < DoorkeeperError attr_reader :missing_param def initialize(missing_param) super @missing_param = missing_param end def type :invalid_request end end class BaseResponseError < DoorkeeperError attr_reader :response def initialize(response) @response = response end def self.name_for_response self.name.demodulize.underscore.to_sym end end UnableToGenerateToken = Class.new(DoorkeeperError) TokenGeneratorNotFound = Class.new(DoorkeeperError) NoOrmCleaner = Class.new(DoorkeeperError) InvalidRequest = Class.new(BaseResponseError) InvalidToken = Class.new(BaseResponseError) InvalidClient = Class.new(BaseResponseError) InvalidScope = Class.new(BaseResponseError) InvalidRedirectUri = Class.new(BaseResponseError) InvalidCodeChallenge = Class.new(BaseResponseError) InvalidCodeChallengeMethod = Class.new(BaseResponseError) InvalidGrant = Class.new(BaseResponseError) UnauthorizedClient = Class.new(BaseResponseError) UnsupportedResponseType = Class.new(BaseResponseError) UnsupportedResponseMode = Class.new(BaseResponseError) AccessDenied = Class.new(BaseResponseError) ServerError = Class.new(BaseResponseError) TokenExpired = Class.new(InvalidToken) TokenRevoked = Class.new(InvalidToken) TokenUnknown = Class.new(InvalidToken) TokenForbidden = Class.new(InvalidToken) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-5.8.0 | lib/doorkeeper/errors.rb |
doorkeeper-5.7.1 | lib/doorkeeper/errors.rb |