Liking cljdoc? Tell your friends :D

auth0-automation.auth0


api-endpointcljmultimethod

Takes a type and returns the api-endpoint string for that type

For example, :client -> "clients" NOTE: Not all supported Auth0 API types are configured, but this is available to make those cases easy.

Takes a type and returns the api-endpoint string for that type

For example, :client -> "clients"
NOTE: Not all supported Auth0 API types are configured, but this is available
to make those cases easy.
sourceraw docstring

build-urlcljmultimethod

Gets the base url format string for the given entity type.

By default, this is in the form http://<domain>/api/v2/<api-endpoint> The intent is for if there is an inconsistency, it can be identified and handled to support all of the Auth0 API types.

Gets the base url format string for the given entity type.

By default, this is in the form `http://<domain>/api/v2/<api-endpoint>`
The intent is for if there is an inconsistency, it can be identified
and handled to support all of the Auth0 API types.
sourceraw docstring

get-entitiesclj

(get-entities {:keys [domain type token entity-manipulation-config] :as args})

Perform an Auth API get for all entities of type, using token for authz

Perform an Auth API get for all entities of `type`, using `token` for authz
sourceraw docstring

get-entities-using-strategyclj

(get-entities-using-strategy {:keys [domain type token
                                     entity-manipulation-config]})

Custom get-entities in order to support types like email-templates

Custom get-entities in order to support types like email-templates
sourceraw docstring

get-entityclj

(get-entity {:keys [domain type id token]})

Perform an Auth API get for the specific entity of type identified by id, using token for authz

Perform an Auth API get for the specific entity of `type` identified by `id`, using `token` for authz
sourceraw docstring

get-tokenclj

(get-token env-config)

Use the environment variables to get a Management API token.

Will return the token if successful, and nil otherwise

Use the environment variables to get a Management API token.

Will return the token if successful, and nil otherwise
sourceraw docstring

get-token-responseclj

(get-token-response {:keys [auth0]})

Manages the post to Auth0 to get an access_token

Manages the post to Auth0 to get an `access_token`
sourceraw docstring

snapshotclj

(snapshot {:keys [domain types token entity-manipulation-config]
           :or {types [:client :resource-server :connection :rule]}})

Take a snapshot of the current existing Auth0 entities for each type in types.

This is useful for creating an initial configuration

Take a snapshot of the current existing Auth0 entities for each type in `types`.

This is useful for creating an initial configuration
sourceraw docstring

success?clj

(success? {:keys [status]})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close