Sha256: e49aab2d7cde17b49f97c5d61a57a64cd3c4bb03f1a7e3781fa2af058dd0fdd4

Contents?: true

Size: 1000 Bytes

Versions: 1

Compression:

Stored size: 1000 Bytes

Contents

# frozen_string_literal: true

module Osso
  module Error
    class OAuthError < StandardError; end

    class NoAccountForOAuthClientError < OAuthError
      def message
        'No customer account exists for the requested domain and OAuth client pair.' \
          "Review our OAuth documentation, and check you're using the correct OAuth client identifier"
      end
    end

    class InvalidOAuthClientIdentifier < MissingSamlAttributeError
      def message
        'No OAuth client exists for the requested OAuth client identifier.' \
          "Review our OAuth documentation, and check you're using the correct OAuth client identifier"
      end
    end

    class InvalidRedirectUri < MissingSamlAttributeError
      def message
        'Invalid Redirect URI for the requested OAuth client identifier.' \
          "Review our OAuth documentation, check you're using the correct OAuth client identifier " \
          'and confirm your Redirect URI allow list.'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
osso-0.0.5.pre.epsilon lib/osso/error/oauth_error.rb