GithubHelp home page GithubHelp logo

auth-command's Introduction

easyengine/auth-command

Configure HTTP Authentication and whitelisting for EasyEngine site

Quick links: Using | Contributing | Support

Using

This package implements the following commands:

ee auth

Configure HTTP Authentication and whitelisting for EasyEngine site

ee auth

EXAMPLES

   # Add auth to a site
   $ ee auth create example.com --user=test --pass=test

   # Delete auth from a site
   $ ee auth delete example.com --user=test

ee auth create

Creates http authentication for a site.

ee auth create [<site-name>] [--user=<user>] [--pass=<pass>] [--ip=<ip>]

OPTIONS

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

[--user=<user>]
	Username for http auth.

[--pass=<pass>]
	Password for http auth.

[--ip=<ip>]
	IP to whitelist.

EXAMPLES

# Add auth on site with default username(easyengine) and random password
$ ee auth create example.com

# Add auth on all sites with default username and random password
$ ee auth create global

# Add auth on site with predefined username and password
$ ee auth create example.com --user=test --pass=password

# Add auth on site with default username and random password
$ ee auth create example.com --pass=password

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

# Whitelist IP on all sites
$ ee auth create global --ip=8.8.8.8,1.1.1.1

ee auth delete

Deletes http authentication for a site. Default: removes http authentication from site. If --user is passed it removes that specific user.

ee auth delete [<site-name>] [--user=<user>] [--ip]

OPTIONS

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

[--user=<user>]
	Username that needs to be deleted.

[--ip]
	IP to remove. Default removes all.

EXAMPLES

# Remove auth on site and its admin tools with default username(easyengine)
$ ee auth delete example.com

# Remove auth on site and its admin tools with custom username
$ ee auth delete example.com --user=example

# Remove global auth on all sites (but not admin tools) with default username(easyengine)
$ ee auth delete global

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

# Remove all whitelisted IPs on site
$ ee auth delete example.com --ip

# Remove whitelisted IPs on all sites
$ ee auth delete global --ip=1.1.1.1

ee auth list

Lists http authentication users of a site.

ee auth list [<site-name>] [--ip] [--format=<format>]

OPTIONS

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

[--ip]
	Show whitelisted IPs of site.

[--format=<format>]
	Render output in a particular format.
	---
	default: table
	options:
	  - table
	  - csv
	  - yaml
	  - json
	  - count
	---

EXAMPLES

# List all auth on site
$ ee auth list example.com

# List all global auth
$ ee auth list global

ee auth update

Updates http authentication password for a site.

ee auth update [<site-name>] [--user=<user>] [--pass=<pass>] [--ip=<ip>]

OPTIONS

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

[--user=<user>]
	Username for http auth.

[--pass=<pass>]
	Password for http auth.

[--ip=<ip>]
	IP to whitelist.

EXAMPLES

# Update auth password on global auth with default username and random password
$ ee auth update global --user=easyengine

# Update auth password on site with predefined username and password
$ ee auth update example.com --user=test --pass=password

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

# Update whitelisted IPs on all sites
$ ee auth update global --ip=8.8.8.8,1.1.1.1

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue. Include as much detail as you can, and clear steps to reproduce if possible.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Support

Github issues aren't for general support questions, but there are other venues you can try: https://easyengine.io/support/

This README.md is generated dynamically from the project's codebase using ee scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.

auth-command's People

Contributors

dhsathiya avatar kirtangajjar avatar mbtamuli avatar mrrobot47 avatar rahulsprajapati avatar sagarnasit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.