Class: WestpacApi::Configuration

Inherits:
Object
  • Object
show all
Includes:
Dry::Configurable
Defined in:
lib/westpac_api/configuration.rb

Instance Method Summary collapse

Instance Method Details

#match_issuer?(issuer) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
26
# File 'lib/westpac_api/configuration.rb', line 23

def match_issuer?(issuer)
  parsed_jwk_url = URI.parse(config.jwk_url)
  parsed_jwk_url.host == issuer
end