Skip to content

Commit

Permalink
SDK Client headers spec compliant #11
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed May 12, 2015
1 parent 97a04a0 commit dd8032a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/laravel-api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"laravel/framework": "5.0.*",
"adoy/oauth2": "dev-master",
"firebase/php-jwt" : "dev-master",
"auth0/login": "dev-master"
"auth0/login": "~2.1"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
Expand Down
7 changes: 7 additions & 0 deletions src/Auth0/Login/LoginServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php namespace Auth0\Login;

use Illuminate\Support\ServiceProvider;
use Auth0\SDK\API\ApiClient;

class LoginServiceProvider extends ServiceProvider {

const SDK_VERSION = "2.1.1";

/**
* Indicates if loading of the provider is deferred.
*
Expand Down Expand Up @@ -32,6 +35,10 @@ public function boot()
$this->publishes([
__DIR__.'/../../config/config.php' => config_path('laravel-auth0.php'),
]);

$laravel = app();
ApiClient::addHeaderInfoMeta('Laravel:'.$laravel::VERSION);
ApiClient::addHeaderInfoMeta('SDK:'.self::SDK_VERSION);
}

/**
Expand Down

0 comments on commit dd8032a

Please sign in to comment.