Skip to content

Commit fe53e5c

Browse files
committed
Merge pull request #12 from auth0/2.x.x-dev
SDK Client headers spec compliant #11
2 parents f6fcc98 + dd8032a commit fe53e5c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

examples/laravel-api/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"laravel/framework": "5.0.*",
99
"adoy/oauth2": "dev-master",
1010
"firebase/php-jwt" : "dev-master",
11-
"auth0/login": "dev-master"
11+
"auth0/login": "~2.1"
1212
},
1313
"require-dev": {
1414
"phpunit/phpunit": "~4.0",

src/Auth0/Login/LoginServiceProvider.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php namespace Auth0\Login;
22

33
use Illuminate\Support\ServiceProvider;
4+
use Auth0\SDK\API\ApiClient;
45

56
class LoginServiceProvider extends ServiceProvider {
67

8+
const SDK_VERSION = "2.1.1";
9+
710
/**
811
* Indicates if loading of the provider is deferred.
912
*
@@ -32,6 +35,10 @@ public function boot()
3235
$this->publishes([
3336
__DIR__.'/../../config/config.php' => config_path('laravel-auth0.php'),
3437
]);
38+
39+
$laravel = app();
40+
ApiClient::addHeaderInfoMeta('Laravel:'.$laravel::VERSION);
41+
ApiClient::addHeaderInfoMeta('SDK:'.self::SDK_VERSION);
3542
}
3643

3744
/**

0 commit comments

Comments
 (0)