Skip to content

Commit e75b765

Browse files
plumpboyphamtritrung
plumpboy
authored andcommitted
Implement client site authentication
1 parent b2b5814 commit e75b765

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+11261
-731
lines changed

.env.dev.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_URL=http://localhost
5+
APP_URL=https://localhost:8443
66

77
LOG_CHANNEL=stack
88

@@ -51,3 +51,8 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
5151

5252
API_CLIENT_ID=
5353
API_CLIENT_SECRET=
54+
55+
MIX_BASE_URL="${APP_URL}"
56+
MIX_BASIC_AUTHEN="web:123456"
57+
MIX_API_PREFIX="api"
58+
MIX_API_VERSION="v1"

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ PUSHER_APP_CLUSTER=mt1
4242

4343
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
4444
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
45+
46+
MIX_BASE_URL="${APP_URL}"
47+
MIX_BASIC_AUTHEN="web:123456"
48+
MIX_API_PREFIX="api"
49+
MIX_API_VERSION="v1"

.envs/dev/nginx/conf.d/default.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ server {
5353
fastcgi_index index.php;
5454
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
5555
fastcgi_param DOCUMENT_ROOT $realpath_root;
56-
fastcgi_param HTTP_AUTHORIZATION $http_authorization_token;
57-
fastcgi_param HTTP_AUTHORIZATION_TOKEN '';
56+
fastcgi_param HTTP_AUTHORIZATION $http_authorization_bearer;
57+
fastcgi_param HTTP_AUTHORIZATION_BEARER '';
5858
fastcgi_param REALPATHTEST $realpath_root;
5959
internal;
6060
}

.envs/dev/php/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ fi
3232
# Discovery new packages and generate manifest
3333
composer dump-autoload
3434

35+
# Generate application routes for client
36+
php artisan laroute:generate
37+
3538
# Starting Supervisor to start the queue process
3639
sudo /etc/init.d/supervisor start
3740

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/node_modules
22
/public/hot
33
/public/storage
4+
/public/mix-manifest.json
45
/storage/*.key
6+
/resources/js/endpoint.js
57
/vendor
68
.env
9+
.phpintel
710
.phpunit.result.cache
811
Homestead.json
912
Homestead.yaml
@@ -14,3 +17,4 @@ docker-compose.yml
1417
public/examples
1518
reports
1619
composer.lock
20+
package-lock.json
-877 Bytes
Binary file not shown.
-442 Bytes
Binary file not shown.
-432 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
-853 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.

.phpintel/index

-483 Bytes
Binary file not shown.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"laravel/framework": "5.8.*",
1414
"laravel/passport": "^7.3",
1515
"laravel/tinker": "^1.0",
16+
"lord/laroute": "^2.4",
1617
"predis/predis": "^1.1",
1718
"squizlabs/php_codesniffer": "^3.4"
1819
},

0 commit comments

Comments
 (0)