Encapsulate authentications.

This commit is contained in:
Alexander Fisher 2016-04-07 10:37:05 -04:00
parent b5dabee20a
commit dd6b720e4d
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ export class {{classname}} {
protected basePath = '{{basePath}}'; protected basePath = '{{basePath}}';
protected defaultHeaders : any = {}; protected defaultHeaders : any = {};
public authentications = { protected authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
{{#authMethods}} {{#authMethods}}
{{#isBasic}} {{#isBasic}}

View File

@ -188,7 +188,7 @@ export class PetApi {
protected basePath = 'http://petstore.swagger.io/v2'; protected basePath = 'http://petstore.swagger.io/v2';
protected defaultHeaders : any = {}; protected defaultHeaders : any = {};
public authentications = { protected authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
'petstore_auth': new OAuth(), 'petstore_auth': new OAuth(),
'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'), 'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'),
@ -878,7 +878,7 @@ export class StoreApi {
protected basePath = 'http://petstore.swagger.io/v2'; protected basePath = 'http://petstore.swagger.io/v2';
protected defaultHeaders : any = {}; protected defaultHeaders : any = {};
public authentications = { protected authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
'petstore_auth': new OAuth(), 'petstore_auth': new OAuth(),
'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'), 'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'),
@ -1260,7 +1260,7 @@ export class UserApi {
protected basePath = 'http://petstore.swagger.io/v2'; protected basePath = 'http://petstore.swagger.io/v2';
protected defaultHeaders : any = {}; protected defaultHeaders : any = {};
public authentications = { protected authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
'petstore_auth': new OAuth(), 'petstore_auth': new OAuth(),
'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'), 'test_api_client_id': new ApiKeyAuth('header', 'x-test_api_client_id'),