/** * Permit.io API * Authorization as a service * * The version of the OpenAPI document: 2.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AuthMechanism } from './auth-mechanism'; import { MappingRule } from './mapping-rule'; import { Secret } from './secret'; /** * * @export * @interface ProxyConfigCreate */ export interface ProxyConfigCreate { /** * * @type {Secret} * @memberof ProxyConfigCreate */ secret: Secret; /** * Proxy Config is set to enable the Permit Proxy to make proxied requests as part of the Frontend AuthZ. * @type {string} * @memberof ProxyConfigCreate */ key: string; /** * The name of the proxy config, for example: \'Stripe API\' * @type {string} * @memberof ProxyConfigCreate */ name: string; /** * Proxy config mapping rules will include the rules that will be used to map the request to the backend service by a URL and a http method. * @type {Array} * @memberof ProxyConfigCreate */ mapping_rules?: Array; /** * Proxy config auth mechanism will define the authentication mechanism that will be used to authenticate the request. Bearer injects the secret into the Authorization header as a Bearer token, Basic injects the secret into the Authorization header as a Basic user:password, Headers injects plain headers into the request. * @type {AuthMechanism} * @memberof ProxyConfigCreate */ auth_mechanism?: AuthMechanism; }