module JwtClaims::Claim::Iss
Issuer @see tools.ietf.org/html/rfc7519#section-4.1.1
Public Instance Methods
reject?(iss, options = {})
click to toggle source
@param iss [String] the principal that issued the JWT @param options [Hash] (key iss:) expected issuer to match with claim @return [true, false] whether to reject the claim
# File lib/jwt_claims/claim/iss.rb, line 14 def reject?(iss, options = {}) expected_issuer = options.fetch(:iss, nil) !StringOrUri.present_and_equal?(iss, expected_issuer) end