File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 8
8
"laravel/framework" : " 5.0.*" ,
9
9
"adoy/oauth2" : " dev-master" ,
10
10
"firebase/php-jwt" : " dev-master" ,
11
- "auth0/login" : " dev-master "
11
+ "auth0/login" : " ~2.1 "
12
12
},
13
13
"require-dev" : {
14
14
"phpunit/phpunit" : " ~4.0" ,
Original file line number Diff line number Diff line change 1
1
<?php namespace Auth0 \Login ;
2
2
3
3
use Illuminate \Support \ServiceProvider ;
4
+ use Auth0 \SDK \API \ApiClient ;
4
5
5
6
class LoginServiceProvider extends ServiceProvider {
6
7
8
+ const SDK_VERSION = "2.1.1 " ;
9
+
7
10
/**
8
11
* Indicates if loading of the provider is deferred.
9
12
*
@@ -32,6 +35,10 @@ public function boot()
32
35
$ this ->publishes ([
33
36
__DIR__ .'/../../config/config.php ' => config_path ('laravel-auth0.php ' ),
34
37
]);
38
+
39
+ $ laravel = app ();
40
+ ApiClient::addHeaderInfoMeta ('Laravel: ' .$ laravel ::VERSION );
41
+ ApiClient::addHeaderInfoMeta ('SDK: ' .self ::SDK_VERSION );
35
42
}
36
43
37
44
/**
You can’t perform that action at this time.
0 commit comments