class ThreeScaleToolbox::CRD::ProductDeploymentParser::OidcParser

Attributes

authentication_flow_parser[R]
cr[R]
gaterway_response_parser[R]
security_parser[R]

Public Class Methods

new(cr) click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 154
def initialize(cr)
  @cr = cr
  @security_parser = SecurityParser.new(cr.fetch('security', {}))
  @gaterway_response_parser = GatewayResponseParser.new(cr.fetch('gatewayResponse', {}))
  @authentication_flow_parser = AuthenticationFlowParser.new(cr.fetch('authenticationFlow', {}))
end

Public Instance Methods

backend_version() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 161
def backend_version
  'oidc'
end
credentials_location() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 165
def credentials_location
  cr['credentials']
end
jwt_claim_with_client_id() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 177
def jwt_claim_with_client_id
  cr['jwtClaimWithClientID']
end
jwt_claim_with_client_id_type() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 181
def jwt_claim_with_client_id_type
  cr['jwtClaimWithClientIDType']
end
method_missing(name, *args) click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 185
def method_missing(name, *args)
  res = authentication_flow_parser.public_send(name, *args)
  return res unless res.nil?

  res = security_parser.public_send(name, *args)
  return res unless res.nil?

  gaterway_response_parser.public_send(name, *args)
end
oidc_issuer_endpoint() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 169
def oidc_issuer_endpoint
  cr['issuerEndpoint']
end
oidc_issuer_type() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 173
def oidc_issuer_type
  cr['issuerType']
end
respond_to_missing?(method_name, include_private = false) click to toggle source
Calls superclass method
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 195
def respond_to_missing?(method_name, include_private = false)
  super
end