File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/dart2
samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class ApiClient {
77 { {#authMethods} }
88 { {#isBasic} }
99 { {#isBasicBasic} }
10- _authentications[r'{ {{name} }}'] = HttpBasicAuth();
10+ _authentications[r'{ {{name} }}'] = HttpBasicAuth('user', 'password' );
1111 { {/isBasicBasic} }
1212 { {#isBasicBearer} }
1313 _authentications[r'{ {{name} }}'] = HttpBearerAuth();
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class ApiClient {
1616 _authentications[r'api_key' ] = ApiKeyAuth ('header' , 'api_key' );
1717 _authentications[r'api_key_query' ] = ApiKeyAuth ('query' , 'api_key_query' );
1818 _authentications[r'bearer_test' ] = HttpBearerAuth ();
19- _authentications[r'http_basic_test' ] = HttpBasicAuth ();
19+ _authentications[r'http_basic_test' ] = HttpBasicAuth ('user' , 'password' );
2020 _authentications[r'petstore_auth' ] = OAuth ();
2121 }
2222
You can’t perform that action at this time.
0 commit comments