-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Keep 2FA step if enabled for oauth users - Fallback to no icon sign in link if not available - Merge cloudfront config in services - Rename Twill enabled feature for consistency - Update published assets
- Loading branch information
Showing
22 changed files
with
122 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,54 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Services default configuration values | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Set of default values. These can be replaced in your config/services.php | ||
| | ||
| These keys represent Socialite possible providers for Oauth authentication | ||
| | ||
*/ | ||
'cloudfront' => [ | ||
'key' => env('CLOUDFRONT_KEY', env('AWS_KEY')), | ||
'secret' => env('CLOUDFRONT_SECRET', env('AWS_SECRET')), | ||
'distribution' => env('CLOUDFRONT_DISTRIBUTION', env('AWS_CLOUDFRONT_DISTRIBUTION')), | ||
'sdk_version' => env('CLOUDFRONT_SDK_VERSION', env('AWS_SDK_VERSION', '2017-10-30')), | ||
'region' => env('CLOUDFRONT_REGION', env('AWS_REGION', 'us-east-1')), | ||
], | ||
|
||
'github' => [ | ||
'client_id' => env('GITHUB_CLIENT_ID'), | ||
'client_secret' => env('GITHUB_CLIENT_SECRET'), | ||
'redirect' => env('GITHUB_CALLBACK_URL', '/login/oauth/callback/github') | ||
'redirect' => env('GITHUB_CALLBACK_URL', '/login/oauth/callback/github'), | ||
], | ||
|
||
'google' => [ | ||
'client_id' => env('GOOGLE_CLIENT_ID'), | ||
'client_secret' => env('GOOGLE_CLIENT_SECRET'), | ||
'redirect' => env('GOOGLE_CALLBACK_URL', '/login/oauth/callback/google') | ||
'redirect' => env('GOOGLE_CALLBACK_URL', '/login/oauth/callback/google'), | ||
], | ||
|
||
'facebook' => [ | ||
'client_id' => env('FACEBOOK_CLIENT_ID'), | ||
'client_secret' => env('FACEBOOK_CLIENT_SECRET'), | ||
'redirect' => env('FACEBOOK_CALLBACK_URL', '/login/oauth/callback/facebook') | ||
'redirect' => env('FACEBOOK_CALLBACK_URL', '/login/oauth/callback/facebook'), | ||
], | ||
|
||
'twitter' => [ | ||
'client_id' => env('TWITTER_CLIENT_ID'), | ||
'client_secret' => env('TWITTER_CLIENT_SECRET'), | ||
'redirect' => env('TWITTER_CALLBACK_URL', '/login/oauth/callback/twitter') | ||
'redirect' => env('TWITTER_CALLBACK_URL', '/login/oauth/callback/twitter'), | ||
], | ||
|
||
'linkedin' => [ | ||
'client_id' => env('LINKEDIN_CLIENT_ID'), | ||
'client_secret' => env('LINKEDIN_CLIENT_SECRET'), | ||
'redirect' => env('LINKEDIN_CALLBACK_URL', '/login/oauth/callback/linkedin') | ||
'redirect' => env('LINKEDIN_CALLBACK_URL', '/login/oauth/callback/linkedin'), | ||
], | ||
|
||
'gitlab' => [ | ||
'client_id' => env('GITLAB_CLIENT_ID'), | ||
'client_secret' => env('GITLAB_CLIENT_SECRET'), | ||
'redirect' => env('GITLAB_CALLBACK_URL', '/login/oauth/callback/gitlab') | ||
'redirect' => env('GITLAB_CALLBACK_URL', '/login/oauth/callback/gitlab'), | ||
], | ||
|
||
'bitbucket' => [ | ||
'client_id' => env('BITBUCKET_CLIENT_ID'), | ||
'client_secret' => env('BITBUCKET_CLIENT_SECRET'), | ||
'redirect' => env('BITBUCKET_CALLBACK_URL', '/login/oauth/callback/bitbucket') | ||
'redirect' => env('BITBUCKET_CALLBACK_URL', '/login/oauth/callback/bitbucket'), | ||
], | ||
|
||
]; |
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"/assets/admin/js/manifest.js": "/assets/admin/js/manifest.js?id=01c8731923a46c30aaed", | ||
"/assets/admin/js/vendor.js": "/assets/admin/js/vendor.js?id=a66b2381da3139b06275", | ||
"/assets/admin/js/main-buckets.js": "/assets/admin/js/main-buckets.js?id=7e6dd62bef78c3239f49", | ||
"/assets/admin/js/vendor.js": "/assets/admin/js/vendor.js?id=3a1352c530a89e56d3a8", | ||
"/assets/admin/js/main-buckets.js": "/assets/admin/js/main-buckets.js?id=3c608e011d4b453d3a7c", | ||
"/assets/admin/js/main-dashboard.js": "/assets/admin/js/main-dashboard.js?id=4a352517865af7e4be11", | ||
"/assets/admin/js/main-form.js": "/assets/admin/js/main-form.js?id=33ab8a05232ca80f9275", | ||
"/assets/admin/js/main-form.js": "/assets/admin/js/main-form.js?id=dcd0ac86f5b61ffbfa62", | ||
"/assets/admin/js/main-free.js": "/assets/admin/js/main-free.js?id=c0ab99eb3e6b32749874", | ||
"/assets/admin/js/main-listing.js": "/assets/admin/js/main-listing.js?id=66697cee31d90883f2f9", | ||
"/assets/admin/css/app.css": "/assets/admin/css/app.css?id=476b64afbec7f46a989f" | ||
"/assets/admin/css/app.css": "/assets/admin/css/app.css?id=edb1c44eee53e2cd4f9d" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
migrations/oauth/2019_10_23_053500_create_twill_users_oauth_table.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
migrations/optional/users-oauth/2019_10_23_053500_create_twill_users_oauth_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreateTwillUsersOauthTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
if (config('twill.enabled.users-oauth', false)) { | ||
$twillUsersTable = config('twill.users_table', 'twill_users'); | ||
$twillOauthTable = config('twill.users_oauth_table', 'twill_users_oauth'); | ||
|
||
if (!Schema::hasTable($twillOauthTable)) { | ||
Schema::create($twillOauthTable, function (Blueprint $table) use ($twillUsersTable) { | ||
$table->{twillIncrementsMethod()}('id'); | ||
$table->timestamps(); | ||
$table->string('token')->index(); | ||
$table->string('provider')->index(); | ||
$table->string('avatar')->nullable(); | ||
$table->string('oauth_id')->index(); | ||
$table->{twillIntegerMethod()}('user_id')->unsigned()->index(); | ||
$table->foreign('user_id', 'fk_twill_users_id')->references('id')->on($twillUsersTable)->onDelete('cascade'); | ||
}); | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::dropIfExists(config('twill.users_oauth_table', 'twill_users_oauth')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.