Merge branch 'master' of git://github.com/lommes/BookStack into lommes-master

This commit is contained in:
Dan Brown 2017-12-09 12:48:08 +00:00
commit d17eb0f54c
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
7 changed files with 85 additions and 35 deletions

View File

@ -46,6 +46,9 @@ GITHUB_APP_ID=false
GITHUB_APP_SECRET=false GITHUB_APP_SECRET=false
GOOGLE_APP_ID=false GOOGLE_APP_ID=false
GOOGLE_APP_SECRET=false GOOGLE_APP_SECRET=false
OKTA_BASE_URL=false
OKTA_KEY=false
OKTA_SECRET=false
# External services such as Gravatar # External services such as Gravatar
DISABLE_EXTERNAL_SERVICES=false DISABLE_EXTERNAL_SERVICES=false

View File

@ -17,6 +17,7 @@ class EventServiceProvider extends ServiceProvider
SocialiteWasCalled::class => [ SocialiteWasCalled::class => [
'SocialiteProviders\Slack\SlackExtendSocialite@handle', 'SocialiteProviders\Slack\SlackExtendSocialite@handle',
'SocialiteProviders\Azure\AzureExtendSocialite@handle', 'SocialiteProviders\Azure\AzureExtendSocialite@handle',
'SocialiteProviders\Okta\OktaExtendSocialite@handle',
], ],
]; ];

View File

@ -14,7 +14,7 @@ class SocialAuthService
protected $socialite; protected $socialite;
protected $socialAccount; protected $socialAccount;
protected $validSocialDrivers = ['google', 'github', 'facebook', 'slack', 'twitter', 'azure']; protected $validSocialDrivers = ['google', 'github', 'facebook', 'slack', 'twitter', 'azure', 'okta'];
/** /**
* SocialAuthService constructor. * SocialAuthService constructor.

View File

@ -17,7 +17,8 @@
"gathercontent/htmldiff": "^0.2.1", "gathercontent/htmldiff": "^0.2.1",
"barryvdh/laravel-snappy": "^0.4.0", "barryvdh/laravel-snappy": "^0.4.0",
"socialiteproviders/slack": "^3.0", "socialiteproviders/slack": "^3.0",
"socialiteproviders/microsoft-azure": "^3.0" "socialiteproviders/microsoft-azure": "^3.0",
"socialiteproviders/okta": "^1.0"
}, },
"require-dev": { "require-dev": {
"filp/whoops": "~2.0", "filp/whoops": "~2.0",

102
composer.lock generated
View File

@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "f5f180d7eca24ffd70ed8083f7a08107", "content-hash": "7d60f09393b99551e9ffdb6622ed7ade",
"packages": [ "packages": [
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.44.1", "version": "3.45.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "3f88cb0b9eb6ca34b2823c1cb42e10ac4d52fa6d" "reference": "d0abb0b1194fa64973b135191f56df991bc5787c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3f88cb0b9eb6ca34b2823c1cb42e10ac4d52fa6d", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/d0abb0b1194fa64973b135191f56df991bc5787c",
"reference": "3f88cb0b9eb6ca34b2823c1cb42e10ac4d52fa6d", "reference": "d0abb0b1194fa64973b135191f56df991bc5787c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -39,7 +39,7 @@
"ext-dom": "*", "ext-dom": "*",
"ext-openssl": "*", "ext-openssl": "*",
"nette/neon": "^2.3", "nette/neon": "^2.3",
"phpunit/phpunit": "^4.8.35|^5.4.0", "phpunit/phpunit": "^4.8.35|^5.4.3",
"psr/cache": "^1.0" "psr/cache": "^1.0"
}, },
"suggest": { "suggest": {
@ -84,7 +84,7 @@
"s3", "s3",
"sdk" "sdk"
], ],
"time": "2017-12-01T20:57:47+00:00" "time": "2017-12-08T21:36:50+00:00"
}, },
{ {
"name": "barryvdh/laravel-dompdf", "name": "barryvdh/laravel-dompdf",
@ -898,25 +898,25 @@
}, },
{ {
"name": "knplabs/knp-snappy", "name": "knplabs/knp-snappy",
"version": "v1.0.2", "version": "v1.0.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/KnpLabs/snappy.git", "url": "https://github.com/KnpLabs/snappy.git",
"reference": "e6a29846ca759ea268a1bca4455b8a14815a3976" "reference": "68590ef3aa94425b1c0019cc28ce471729f51fcb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/KnpLabs/snappy/zipball/e6a29846ca759ea268a1bca4455b8a14815a3976", "url": "https://api.github.com/repos/KnpLabs/snappy/zipball/68590ef3aa94425b1c0019cc28ce471729f51fcb",
"reference": "e6a29846ca759ea268a1bca4455b8a14815a3976", "reference": "68590ef3aa94425b1c0019cc28ce471729f51fcb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.6", "php": ">=5.6",
"psr/log": "^1.0", "psr/log": "^1.0",
"symfony/process": "~2.3|~3.0" "symfony/process": "~2.3 || ~3.0 || ~4.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.7" "phpunit/phpunit": "~4.8.36"
}, },
"suggest": { "suggest": {
"h4cc/wkhtmltoimage-amd64": "Provides wkhtmltoimage-amd64 binary for Linux-compatible machines, use version `~0.12` as dependency", "h4cc/wkhtmltoimage-amd64": "Provides wkhtmltoimage-amd64 binary for Linux-compatible machines, use version `~0.12` as dependency",
@ -960,20 +960,20 @@
"thumbnail", "thumbnail",
"wkhtmltopdf" "wkhtmltopdf"
], ],
"time": "2017-10-04T19:39:41+00:00" "time": "2017-12-03T23:18:18+00:00"
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v5.5.23", "version": "v5.5.24",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "cb8ec95aa65fbaeeaf94026c8a9f04bb97c13777" "reference": "06135405bb1f736dac5e9529ed1541fc446c9c0f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/cb8ec95aa65fbaeeaf94026c8a9f04bb97c13777", "url": "https://api.github.com/repos/laravel/framework/zipball/06135405bb1f736dac5e9529ed1541fc446c9c0f",
"reference": "cb8ec95aa65fbaeeaf94026c8a9f04bb97c13777", "reference": "06135405bb1f736dac5e9529ed1541fc446c9c0f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1093,7 +1093,7 @@
"framework", "framework",
"laravel" "laravel"
], ],
"time": "2017-12-04T14:19:08+00:00" "time": "2017-12-07T01:28:21+00:00"
}, },
{ {
"name": "laravel/socialite", "name": "laravel/socialite",
@ -2161,6 +2161,43 @@
"description": "Microsoft Azure OAuth2 Provider for Laravel Socialite", "description": "Microsoft Azure OAuth2 Provider for Laravel Socialite",
"time": "2017-01-25T09:48:29+00:00" "time": "2017-01-25T09:48:29+00:00"
}, },
{
"name": "socialiteproviders/okta",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/SocialiteProviders/Okta.git",
"reference": "dcda13432c80060cd84d4cb5f2af422d280ab895"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/SocialiteProviders/Okta/zipball/dcda13432c80060cd84d4cb5f2af422d280ab895",
"reference": "dcda13432c80060cd84d4cb5f2af422d280ab895",
"shasum": ""
},
"require": {
"php": "^5.6 || ^7.0",
"socialiteproviders/manager": "~2.0 || ~3.0"
},
"type": "library",
"autoload": {
"psr-4": {
"SocialiteProviders\\Okta\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Chase Coney",
"email": "chase.coney@gmail.com"
}
],
"description": "Okta OAuth2 Provider for Laravel Socialite",
"time": "2017-11-21T05:31:47+00:00"
},
{ {
"name": "socialiteproviders/slack", "name": "socialiteproviders/slack",
"version": "v3.0.3", "version": "v3.0.3",
@ -4041,16 +4078,16 @@
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
"version": "5.2.4", "version": "5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "033ec97498cf530cc1be4199264cad568b19be26" "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/033ec97498cf530cc1be4199264cad568b19be26", "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/661f34d0bd3f1a7225ef491a70a020ad23a057a1",
"reference": "033ec97498cf530cc1be4199264cad568b19be26", "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4066,7 +4103,6 @@
"theseer/tokenizer": "^1.1" "theseer/tokenizer": "^1.1"
}, },
"require-dev": { "require-dev": {
"ext-xdebug": "^2.5",
"phpunit/phpunit": "^6.0" "phpunit/phpunit": "^6.0"
}, },
"suggest": { "suggest": {
@ -4075,7 +4111,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "5.2.x-dev" "dev-master": "5.3.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -4090,7 +4126,7 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"email": "sb@sebastian-bergmann.de", "email": "sebastian@phpunit.de",
"role": "lead" "role": "lead"
} }
], ],
@ -4101,7 +4137,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2017-11-27T09:00:30+00:00" "time": "2017-12-06T09:29:45+00:00"
}, },
{ {
"name": "phpunit/php-file-iterator", "name": "phpunit/php-file-iterator",
@ -4291,16 +4327,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "6.5.2", "version": "6.5.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "24b708f2fd725bcef1c8153b366043381aa324f2" "reference": "882e886cc928a0abd3c61282b2a64026237d14a4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/24b708f2fd725bcef1c8153b366043381aa324f2", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/882e886cc928a0abd3c61282b2a64026237d14a4",
"reference": "24b708f2fd725bcef1c8153b366043381aa324f2", "reference": "882e886cc928a0abd3c61282b2a64026237d14a4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4314,7 +4350,7 @@
"phar-io/version": "^1.0", "phar-io/version": "^1.0",
"php": "^7.0", "php": "^7.0",
"phpspec/prophecy": "^1.7", "phpspec/prophecy": "^1.7",
"phpunit/php-code-coverage": "^5.2.3", "phpunit/php-code-coverage": "^5.3",
"phpunit/php-file-iterator": "^1.4.3", "phpunit/php-file-iterator": "^1.4.3",
"phpunit/php-text-template": "^1.2.1", "phpunit/php-text-template": "^1.2.1",
"phpunit/php-timer": "^1.0.9", "phpunit/php-timer": "^1.0.9",
@ -4371,7 +4407,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2017-12-02T05:36:24+00:00" "time": "2017-12-06T09:42:03+00:00"
}, },
{ {
"name": "phpunit/phpunit-mock-objects", "name": "phpunit/phpunit-mock-objects",

View File

@ -80,6 +80,14 @@ return [
'name' => 'Microsoft Azure', 'name' => 'Microsoft Azure',
], ],
'okta' => [
'client_id' => env('OKTA_KEY'),
'client_secret' => env('OKTA_SECRET'),
'redirect' => env('APP_URL') . '/login/service/okta/callback',
'base_url' => env('OKTA_BASE_URL'),
'name' => 'Okta',
],
'ldap' => [ 'ldap' => [
'server' => env('LDAP_SERVER', false), 'server' => env('LDAP_SERVER', false),
'dn' => env('LDAP_DN', false), 'dn' => env('LDAP_DN', false),

View File

@ -0,0 +1 @@
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><use id="image0" xlink:href="#_Image1" x="0" y="0" width="64px" height="64px"/><defs><image id="_Image1" width="24px" height="24px" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAACU0lEQVRIiaWVTUiUURSGn3PnGyXDrAjaVEIlGG2ElhHjT4RR6aZFtGgR1KaNFBjliJg/lT9tohbtWlvQD4SLUMehVhFBm3IpQYlZljSOOXNPixl/596Z0d7VcJ7zvufeb+79PiGfrj8vI7w9jlAJVABBlvwFZrH2HWKa6Y6kfBHirEbHqhAZBvbnXcCK3qC2ie66H+uByWltj7UiMrGBcICjiJkhOnYm/4CO+BPg7gaC10rkBdGxm2tKy7/ax6+BDmw6fLVU6+muHV0Z0Bbfi7GThWyAzXpyH+162YUt9JxIZhqNfZWnNY3qcVTLmTQBidkAayuw6SvZoW5JyYPMDqIjO5BQzr+f1QTjI9XEOt1BrcNbKS37Clru5F0RMUjooXflU78OecMB+hr/YNV/2m68bjZAgxOqvcijJus1L6kn8h2Vp04WhPsM4Nqeouo2OWVbPKDCACUOsIglWXS+6m8PKTW4T4Igxv0acct3bNUACw4QBrYVH292esi8AX46kXCn6AFi3nrItMHqffeq5BJtowcLhnfEm1G728kSiUZDYu6e12zMZ6KxGi9vj53C2mceahk8+U2yjUPAWW+Q6geUcximsBiwBzChIaDS64FWuiL9mS9UKnWeIPAPEKlB+JTZFUAoTy4ASRJzA8vt3G5YRMyRQq4iZUmn9zF4WlcGANw69p5QcOE/w9PAYXrrp5cKuZcpOl6F6MTm4nUXvbUzq0vu23r1paGsvB+RFgp/XJJAJ10R570p/DpoG6lGQo8R9gCl2eo8qh9RvUxP3Zd89n+rAbY6AaOFBwAAAABJRU5ErkJggg=="/></defs></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB