A CLI for managing SAML connections in Auth0
For a tenant to be used by the tool, you must first log into the Auth0 Dashboard and:
- Create a new Non Interactive Client that will represent this tool. Name it something like:
auth0-saml-connection-tool
- Authorize the client for the Auth0 Management API and enable the following scopes:
read:connections
delete:connections
create:connections
This script is not registered in npm
, but you can install it as global command directly from this repo like this:
npm install -g https://github.com/twistedstream/auth0-saml-connection-tool
Alternatively if you have cloned this repo to your machine, you can install the script globally by running this command from the repo directory:
npm install -g
Before you can run any real commands, you need to log in:
a0saml login
Follow the prompts to configure the tool with the Auth0 client created above.
Now you can do stuff, like create a SAML connection from the sample SSO Circle metadata file:
a0saml create ./sample-metadata/ssocircle.xml
Here's how you can delete all your SAML connections:
a0saml delete-all
Or get a count of all SAML connections:
a0saml count
For a compete list of commands and help:
a0saml --help