Skip to content

Commit 3e790cc

Browse files
author
Aidan Casey
committed
Fixed password to secret
1 parent f4428ac commit 3e790cc

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ This package bridges the Autotask client to Laravel by injecting it into the app
44
# To Install
55
Run `composer require anteris-dev/laravel-autotask-client`.
66

7-
To publish the configuration file, use the command `php artisan vendor:publish --provider 'Anteris\Autotask\Laravel\ServiceProvider'`. Now you can enter your Autotask API information into the configuration file found at 'config/autotask.php'.
7+
To publish the configuration file, use the command `php artisan vendor:publish --provider 'Anteris\Autotask\Laravel\ServiceProvider'`. Now you can enter your Autotask API information in the configuration file found at _config/autotask.php_ or preferablly, in your _.env_ file using the keys below.
88

9-
To register the facade so you may use the client like this: `Autotask::tickets()->findById(0)` add the following line to the 'aliases' key in the Laravel file 'config/app.php'.
9+
```
10+
AUTOTASK_USERNAME=username
11+
AUTOTASK_SECRET=secret
12+
AUTOTASK_INTEGRATION_CODE=integration-code
13+
AUTOTASK_ZONE_URL=https://example.com
14+
```
15+
16+
To register the facade so you may use the client like this: `Autotask::tickets()->findById(0)` add the following line to the 'aliases' key in the Laravel file _config/app.php_.
1017

1118
```php
1219
'Autotask' => Anteris\Autotask\Laravel\Facade::class,

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v0.1.1] - 2020-09-03
8+
### Fixed
9+
- Key 'password' should have been 'secret'
10+
711
## [v0.1.0] - 2020-09-03
812
### Added
913
- Initial ServiceProvider class files.
1014
- Initial Facade class files.
1115

16+
[v0.1.1]: https://github.com/Anteris-Dev/laravel-autotask-client/compare/v0.1.0...v0.1.1
1217
[v0.1.0]: https://github.com/Anteris-Dev/laravel-autotask-client/releases/tag/v0.1.0
1318

config/autotask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
| framework needs to place a request to Autotask.
2323
|
2424
*/
25-
'password' => env('AUTOTASK_PASSWORD', null),
25+
'secret' => env('AUTOTASK_SECRET', null),
2626

2727
/*
2828
|--------------------------------------------------------------------------

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function register()
2121
$this->app->singleton(Client::class, function ($app) {
2222
return new Client(
2323
$app['config']['autotask.username'],
24-
$app['config']['autotask.password'],
24+
$app['config']['autotask.secret'],
2525
$app['config']['autotask.integration_code'],
2626
$app['config']['autotask.zone_url']
2727
);

tests/AbstractTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class AbstractTestCase extends TestCase
99
protected function getEnvironmentSetUp($app)
1010
{
1111
$app['config']->set('autotask.username', '[email protected]');
12-
$app['config']->set('autotask.password', 'testpassword');
12+
$app['config']->set('autotask.secret', 'testpassword');
1313
$app['config']->set('autotask.integration_code', 'testintegrationcode');
1414
$app['config']->set('autotask.zone_url', 'https://randomurl.com');
1515
}

0 commit comments

Comments
 (0)