Skip to content

Commit

Permalink
Fixed password to secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Casey committed Sep 3, 2020
1 parent f4428ac commit 3e790cc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ This package bridges the Autotask client to Laravel by injecting it into the app
# To Install
Run `composer require anteris-dev/laravel-autotask-client`.

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'.
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.

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'.
```
AUTOTASK_USERNAME=username
AUTOTASK_SECRET=secret
AUTOTASK_INTEGRATION_CODE=integration-code
AUTOTASK_ZONE_URL=https://example.com
```

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_.

```php
'Autotask' => Anteris\Autotask\Laravel\Facade::class,
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.1.1] - 2020-09-03
### Fixed
- Key 'password' should have been 'secret'

## [v0.1.0] - 2020-09-03
### Added
- Initial ServiceProvider class files.
- Initial Facade class files.

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

2 changes: 1 addition & 1 deletion config/autotask.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
| framework needs to place a request to Autotask.
|
*/
'password' => env('AUTOTASK_PASSWORD', null),
'secret' => env('AUTOTASK_SECRET', null),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function register()
$this->app->singleton(Client::class, function ($app) {
return new Client(
$app['config']['autotask.username'],
$app['config']['autotask.password'],
$app['config']['autotask.secret'],
$app['config']['autotask.integration_code'],
$app['config']['autotask.zone_url']
);
Expand Down
2 changes: 1 addition & 1 deletion tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ abstract class AbstractTestCase extends TestCase
protected function getEnvironmentSetUp($app)
{
$app['config']->set('autotask.username', '[email protected]');
$app['config']->set('autotask.password', 'testpassword');
$app['config']->set('autotask.secret', 'testpassword');
$app['config']->set('autotask.integration_code', 'testintegrationcode');
$app['config']->set('autotask.zone_url', 'https://randomurl.com');
}
Expand Down

0 comments on commit 3e790cc

Please sign in to comment.