Skip to content

Commit 3d65f0d

Browse files
committed
Multi guard auth
1 parent 182fdd2 commit 3d65f0d

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
Multi guard authentication API with sessions in Laravel.
44

5-
## Install
5+
## COnfig
66

7-
Update with compoer.
8-
9-
## Config
7+
Install databases and update with composer.
108

119
```sh
1210
# Update
1311
composer update
1412

15-
# Create migrations
13+
# Create permissions migrations
1614
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
1715

1816
# Then change the beginning of the permission migration file name to
@@ -109,18 +107,20 @@ php artisan db:seed --class=ApiloginPermissionsSeeder
109107

110108
## Default admin credentials
111109

112-
Change before running the migration command (php artisan). See migration file 2023_08_04_105808_create_admin_users_table.php.
110+
Change before running the migration. See migration file 2023_08_04_105808_create_admin_users_table.php.
113111

114112
```php
115113
// config/apilogin.php
116114
return [
117115
// Admin users emails (email with dns mx)
118-
'super_admin_email' => 'admin@gmail.com',
119-
'worker_admin_email' => 'worker@gmail.com',
116+
'super_admin_email' => 'superadmin@gmail.com',
117+
'admin_email' => 'admin@gmail.com',
118+
'worker_email' => 'worker@gmail.com',
120119

121120
// Admin users passsword
122121
'super_admin_password' => 'Password123#',
123-
'worker_admin_password' => 'Password123#',
122+
'admin_password' => 'Password123#',
123+
'worker_password' => 'Password123#',
124124
]
125125
```
126126

@@ -132,7 +132,7 @@ Disable amazon S3 disk overwriting if you have it installed (optional).
132132
// config/apilogin.php
133133
return [
134134
// Disable Storage::disk s3 to public overwrite
135-
'apilogin.overwrite_disk_s3' => false,
135+
'overwrite_disk_s3' => false,
136136
]
137137
```
138138

@@ -182,6 +182,7 @@ Two factor auth redirection url (vue).
182182

183183
```sh
184184
/login/f2a/{hash}
185+
/admin/login/f2a/{hash}
185186
```
186187

187188
### Run tests
@@ -206,7 +207,7 @@ php artisan test --stop-on-failure --testsuite=Apilogin
206207
}
207208
```
208209

209-
## Notifications exmple
210+
## Notifications config
210211

211212
Run first: php artisan notifications:table
212213

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// 'worker_password' => 'Password123#',
1313

1414
// Disable Storage::disk s3 to public overwrite
15-
// 'apilogin.overwrite_disk_s3' => false
15+
// 'overwrite_disk_s3' => false
1616

1717
// Login rate limit
1818
// 'ratelimit_login_time' => 300,

0 commit comments

Comments
 (0)