GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dmark/authzero: A command line interface to the Auth0 Management API.

This repository was archived by the owner on Oct 16, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

78 Commits
78 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
.vscode
.vscode
 
 
bin
bin
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
auth0-connect-test.js
auth0-connect-test.js
 
 
auth0-connect-test.ts
auth0-connect-test.ts
 
 
env.txt
env.txt
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
 
 
tslint.json
tslint.json
 
 

Repository files navigation

authzero

oclif Version CircleCI Downloads/week License PRs Welcome

A command line interface to the Auth0 Management API, using node.js, oclif, and TypeScript. Currently covers only a small portion of the read-only capabilities of the Management API.

The code is likely garbage (I am not a software engineer and node / typescript / javascript is all new to me) but it works. The project could use an overhaul by someone who knows idiomatic nodejs and typescript. Once the code is cleaned up a bit, maybe we'll push it to NPM.

WARNING: This utility relies on the Client Credentials exchange grant type to access your tenant's Management API. As such, it has access to whatever scopes you have assigned to the application in Auth0. If you have assigned scopes that allow making changes to your tenant, you can do some real damage with this utility (once we start adding change / update / patch features that is). YOU CAN BREAK ALL THE THINGS. Always check your .env file before working with the utility and always exercise extreme caution when working with a production tenant.

Setup

TODO: This section needs more detail.

Install node.js, oclif, typescript, and the node-auth0 library.

Create a Machine-to-Machine application in Auth0. Give your M2M application access to the Management API and assign approriate scopes (mostly read:* at the moment).

Possibly useful: Using Machine to Machine (M2M) Authorization

Clone the repo.

Create a .env file in root directory of the repo. You can use env.txt as a template.


To update the documentation below:

npx oclif-dev readme
  • Usage
  • Commands

Usage

$ npm install -g authzero
$ authzero COMMAND
running command...
$ authzero (-v|--version|version)
authzero/0.0.0 darwin-x64 node-v12.4.0
$ authzero --help [COMMAND]
USAGE
  $ authzero COMMAND
...

Commands

  • authzero client:get
  • authzero connection:get
  • authzero help [COMMAND]
  • authzero rule:get
  • authzero tenant:get
  • authzero user:add
  • authzero user:get

authzero client:get

Get client (application) settings.

USAGE
  $ authzero client:get

OPTIONS
  -h, --help   show CLI help
  -i, --id=id  (required) Client ID

See code: src/commands/client/get.ts

authzero connection:get

Get connection settings.

USAGE
  $ authzero connection:get

OPTIONS
  -h, --help   show CLI help
  -i, --id=id  (required) Connection ID

See code: src/commands/connection/get.ts

authzero help [COMMAND]

display help for authzero

USAGE
  $ authzero help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

authzero rule:get

Get rule.

USAGE
  $ authzero rule:get

OPTIONS
  -h, --help   show CLI help
  -i, --id=id  (required) Rule ID

See code: src/commands/rule/get.ts

authzero tenant:get

Get tenant settings.

USAGE
  $ authzero tenant:get

OPTIONS
  -h, --help  show CLI help

See code: src/commands/tenant/get.ts

authzero user:add

Create a new user.

USAGE
  $ authzero user:add

OPTIONS
  -f, --profile=profile  profile for the new user in JSON format
  -h, --help             show CLI help

See code: src/commands/user/add.ts

authzero user:get

Get profile for specificed user.

USAGE
  $ authzero user:get

OPTIONS
  -e, --email=email        email address of user
  -h, --help               show CLI help
  -i, --user_id=user_id    user_id of user
  -u, --username=username  username of user

See code: src/commands/user/get.ts

About

A command line interface to the Auth0 Management API.

Topics

auth0javascriptnode-jsnodejsocliftypescript

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.