Sha256: 80d1d5374b959042808d59dbc548c139c43a5d569cbe7fe03c71d2e110e7f8ab
Contents?: true
Size: 368 Bytes
Versions: 3
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true module AppleAuth module Conditions class IssCondition APPLE_ISS = 'https://appleid.apple.com' def initialize(jwt) @iss = jwt['iss'] end def validate! return true if @iss.include?(APPLE_ISS) raise JWTValidationError, 'jwt_iss is different to apple_iss' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems