mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Encapsulate authentications.
This commit is contained in:
parent
b5dabee20a
commit
dd6b720e4d
@ -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}}
|
||||||
|
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user