Using API Token rather than key. Token now in header. Closes #358.

This commit is contained in:
James Brooks
2015-01-12 13:34:31 +00:00
parent 342281ef0d
commit cc43dcc6aa
8 changed files with 37 additions and 39 deletions

View File

@@ -2,7 +2,7 @@
namespace CachetHQ\Cachet\Providers;
use CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator;
use CachetHQ\Cachet\Http\Auth\ApiTokenAuthenticator;
use Illuminate\Support\ServiceProvider;
class AuthServiceProvider extends ServiceProvider
@@ -24,8 +24,8 @@ class AuthServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->bindShared('CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator', function () {
return new ApiKeyAuthenticator();
$this->app->bindShared('CachetHQ\Cachet\Http\Auth\ApiTokenAuthenticator', function () {
return new ApiTokenAuthenticator();
});
}
}