Sha256: ae23f1c6012fcc14810184cf9b7dea71d3d9387d1117429fc08b53068208ddf0

Contents?: true

Size: 1.57 KB

Versions: 21

Compression:

Stored size: 1.57 KB

Contents

# frozen_string_literal: true

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


module Google
  module Auth
    module IDTokens
      ##
      # Failed to obtain keys from the key source.
      #
      class KeySourceError < StandardError; end

      ##
      # Failed to verify a token.
      #
      class VerificationError < StandardError; end

      ##
      # Failed to verify a token because it is expired.
      #
      class ExpiredTokenError < VerificationError; end

      ##
      # Failed to verify a token because its signature did not match.
      #
      class SignatureError < VerificationError; end

      ##
      # Failed to verify a token because its issuer did not match.
      #
      class IssuerMismatchError < VerificationError; end

      ##
      # Failed to verify a token because its audience did not match.
      #
      class AudienceMismatchError < VerificationError; end

      ##
      # Failed to verify a token because its authorized party did not match.
      #
      class AuthorizedPartyMismatchError < VerificationError; end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
googleauth-1.11.2 lib/googleauth/id_tokens/errors.rb
googleauth-1.11.1 lib/googleauth/id_tokens/errors.rb
googleauth-1.11.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.10.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.9.2 lib/googleauth/id_tokens/errors.rb
googleauth-1.9.1 lib/googleauth/id_tokens/errors.rb
googleauth-1.8.1 lib/googleauth/id_tokens/errors.rb
googleauth-1.8.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.7.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.6.0 lib/googleauth/id_tokens/errors.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/googleauth-1.5.2/lib/googleauth/id_tokens/errors.rb
googleauth-1.5.2 lib/googleauth/id_tokens/errors.rb
googleauth-1.5.1 lib/googleauth/id_tokens/errors.rb
googleauth-1.5.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.3.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.2.0 lib/googleauth/id_tokens/errors.rb
googleauth-1.1.3 lib/googleauth/id_tokens/errors.rb
googleauth-1.1.2 lib/googleauth/id_tokens/errors.rb
googleauth-1.1.1 lib/googleauth/id_tokens/errors.rb
googleauth-1.1.0 lib/googleauth/id_tokens/errors.rb