Skip to content
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ec0ac57
Add all_sites subcommand
danish17 Sep 14, 2021
f467b8d
Add ignore-existing, silent flags
danish17 Sep 14, 2021
2ec948d
Add delete all-sites command
danish17 Sep 15, 2021
f1d4513
Update READMe.md; add docs
danish17 Sep 15, 2021
d96bb7d
Fix logic
danish17 Sep 15, 2021
ff87fdf
Add auth support
danish17 Sep 17, 2021
483669c
Add auth support
danish17 Sep 17, 2021
7932aff
Change file structure
danish17 Sep 17, 2021
689f023
Add update functionality; fix issue with multiple admin-tool auths
danish17 Sep 17, 2021
d476d1f
Fix documentation; add output messages
danish17 Sep 17, 2021
cf037f9
Add delete function
danish17 Sep 17, 2021
b96b021
Add delete function; change generate_global_auth_files logic
danish17 Sep 20, 2021
42820a5
Fix PHPCS issues; remove comments; add docs
danish17 Sep 20, 2021
89aaca2
Fix unused methods; fix docs
danish17 Sep 20, 2021
2a98cc2
Fix docs
danish17 Sep 20, 2021
67432d6
Add newline at EOF
danish17 Sep 20, 2021
3d900e8
Modify populate_info(); Change logic
danish17 Sep 21, 2021
65c170e
Fix logic; Remove unused code
danish17 Sep 21, 2021
58f9520
Improve outputs on ee auth list
danish17 Sep 21, 2021
4481db4
Add confirmation message upon deletion; Add --y flag to delete
danish17 Sep 21, 2021
f83314d
Replace --y with --yes
danish17 Sep 22, 2021
86ff66f
Fix ee auth delete global; Modify ee auth list global
danish17 Sep 22, 2021
5791b01
Remove --show-updated flag support
danish17 Sep 22, 2021
1c17c07
Reverted to EasyEngine/auth-command:master version
danish17 Sep 22, 2021
d49da4b
Change generate_global_auth_files() logic
danish17 Sep 22, 2021
b08f84a
Fix ee auth create global not working
danish17 Sep 23, 2021
fe6928b
Restructure code
danish17 Sep 23, 2021
5e43045
Merge pull request #2 from danish17/fix/global-auth
danish17 Sep 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ ee auth
# Delete auth from a site
$ ee auth delete example.com --user=test

# Add auth to admin-tools
$ ee auth create admin-tools --user=test --pass=test

# Delete auth from admin-tools
$ ee auth delete admin-tools --user=test



### ee auth create
Expand All @@ -40,7 +46,7 @@ ee auth create [<site-name>] [--user=<user>] [--pass=<pass>] [--ip=<ip>]
**OPTIONS**

[<site-name>]
Name of website / `global` for global scope.
Name of website / `global` for global scope / `admin-tools` for admin-tools.

[--user=<user>]
Username for http auth.
Expand All @@ -65,6 +71,12 @@ ee auth create [<site-name>] [--user=<user>] [--pass=<pass>] [--ip=<ip>]
# Add auth on site with default username and random password
$ ee auth create example.com --pass=password

# Add auth on admin-tools with predefined username and random password
$ ee auth create admin-tools --user=test

# Add auth on admin-tools with predefined username and password
$ ee auth create admin-tools --user=test -pass=password

# Whitelist IP on site
$ ee auth create example.com --ip=8.8.8.8,1.1.1.1

Expand All @@ -84,7 +96,7 @@ ee auth delete [<site-name>] [--user=<user>] [--ip]
**OPTIONS**

[<site-name>]
Name of website / `global` for global scope.
Name of website / `global` for global scope / `admin-tools` for admin-tools.

[--user=<user>]
Username that needs to be deleted.
Expand All @@ -103,6 +115,9 @@ ee auth delete [<site-name>] [--user=<user>] [--ip]
# Remove global auth on all sites (but not admin tools) with default username(easyengine)
$ ee auth delete global

# Remove auth on admin-tools with specific username
$ ee auth delete admin-tools --user=test

# Remove specific whitelisted IPs on site
$ ee auth delete example.com --ip=1.1.1.1,8.8.8.8

Expand All @@ -125,7 +140,7 @@ ee auth list [<site-name>] [--ip] [--format=<format>]
**OPTIONS**

[<site-name>]
Name of website / `global` for global scope.
Name of website / `global` for global scope / `admin-tools` for admin-tools.

[--ip]
Show whitelisted IPs of site.
Expand All @@ -150,6 +165,9 @@ ee auth list [<site-name>] [--ip] [--format=<format>]
# List all global auth
$ ee auth list global

# List all admin-tools auth
$ ee auth list admin-tools



### ee auth update
Expand All @@ -163,7 +181,7 @@ ee auth update [<site-name>] [--user=<user>] [--pass=<pass>] [--ip=<ip>]
**OPTIONS**

[<site-name>]
Name of website / `global` for global auth.
Name of website / `global` for global auth / `admin-tools` for admin-tools.

[--user=<user>]
Username for http auth.
Expand All @@ -182,6 +200,9 @@ ee auth update [<site-name>] [--user=<user>] [--pass=<pass>] [--ip=<ip>]
# Update auth password on site with predefined username and password
$ ee auth update example.com --user=test --pass=password

# Update auth password on admin-tools with predefined username and password
$ ee auth update admin-tools --user=test --password=password

# Update whitelisted IPs on site
$ ee auth update example.com --ip=8.8.8.8,1.1.1.1

Expand Down
Loading