Giter VIP home page Giter VIP logo

a0toolkit's Introduction

Build Status

Appveyor:
Build status

A0Toolkit is published in the Chocolatey packages community feed.

As A0Tookit is a PowerShell module it will autoload when any exported functions are invoked.


A0Toolkit

This project will no-longer be maintained due to the fact that Auth0 have re-written the a0deploy cli node application v2 to support the same features as the A0Toolkit. See link below.

List of exported functions:

1.4.0

  • Get-A0ClientGrant
  • New-A0ClientGrant
  • Remove-A0ClientGrant
  • Set-A0ClientGrant

1.3.0

  • Get-A0EmailTemplate
  • Set-A0EmailTemplate

1.2.0

  • Get-A0RuleConfig
  • Remove-A0RuleConfig
  • Set-A0RuleConfig

1.1.0

  • Remove-A0ResourceServer

1.0.0

  • Get-A0Client
  • Get-A0ClientGrants
  • Get-A0Connection
  • Get-A0EmailProvider
  • Get-A0ResourceServer
  • New-A0Connection
  • New-A0EmailProvider
  • New-A0Token
  • Remove-A0Client
  • Remove-A0Connection
  • Set-A0Client
  • Set-A0Connection
  • Set-A0EmailProvider
  • Set-A0Tenant

Provisioning Auth0

Using a combination of the Auth0 Deploy CLI node application and the above module, provisioning of Auth0 can largely be automated and integrated into a deployment pipeline.

In the folder SampleOrchestrationScript there is an example of how to orchestrate the functions above into a working solution.

This composes of a PowerShell script Set-Auth0Tenant and a json configuration file powershell.auth0.config.json

The json file consist of:

Array of Environments
Common can be used for shared values and overridden by other environments. If integrating into a deployment pipeline, the common environment values can be tokenised, as in the example. A token is denoted by #{xxx}

Auth0 Configuration
These sections closely align to Auth0 resources:

  • account
  • clients
  • clients\clientGrants
  • connections
  • email
  • emailTemplates
  • ruleConfigs

These sections are custom and protect the resources from being deleted by the PowerShell script:

  • protectedClients
  • protectedConnections
  • protectedResourceServers

These properties are required to acquire a Auth0 Management token:

  • domain
  • clientId
  • clientSecret

Example

This would load any sections/properties from the 'dev' environment and then any additional sections/properties from the common envrionment.

Set-Auth0Tenant -targetEnvironment 'dev'

a0toolkit's People

Contributors

iamandyw avatar

Stargazers

Saltuk Alakus avatar

Watchers

James Cloos avatar  avatar  avatar  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.