From dd8032a986cfeef9b047c2515085060e2f7bd813 Mon Sep 17 00:00:00 2001 From: German Lena Date: Tue, 12 May 2015 11:59:37 -0300 Subject: [PATCH] SDK Client headers spec compliant #11 --- examples/laravel-api/composer.json | 2 +- src/Auth0/Login/LoginServiceProvider.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/laravel-api/composer.json b/examples/laravel-api/composer.json index 061033da..a9337d3b 100644 --- a/examples/laravel-api/composer.json +++ b/examples/laravel-api/composer.json @@ -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", diff --git a/src/Auth0/Login/LoginServiceProvider.php b/src/Auth0/Login/LoginServiceProvider.php index bf189cc5..bcbeaabb 100644 --- a/src/Auth0/Login/LoginServiceProvider.php +++ b/src/Auth0/Login/LoginServiceProvider.php @@ -1,9 +1,12 @@ publishes([ __DIR__.'/../../config/config.php' => config_path('laravel-auth0.php'), ]); + + $laravel = app(); + ApiClient::addHeaderInfoMeta('Laravel:'.$laravel::VERSION); + ApiClient::addHeaderInfoMeta('SDK:'.self::SDK_VERSION); } /**