Skip to content

Instantly share code, notes, and snippets.

@Tanver-Hasan
Created January 24, 2019 18:03
Show Gist options
  • Save Tanver-Hasan/7479ea34004cf007f2fa074311a94d9c to your computer and use it in GitHub Desktop.
Save Tanver-Hasan/7479ea34004cf007f2fa074311a94d9c to your computer and use it in GitHub Desktop.
#Create Dynamic Client
#create client
curl --request POST \
--url "https://[TENANT].auth0.com/oidc/register" \
--data '{ "client_name":"[Friendly name]", "redirect_uris":["http://localhost:4200"]}' \
--header "Content-Type: application/json" \
# Upgrade connection to domain level and enable client for the connection
curl --request PATCH \
--url "https://[TENANT].auth0.com/api/v2/connections/[CONNECTION ID]" \
--data '{ "enabled_clients": ["[THIRD PARTY CLIENT ID]"],"is_domain_connection": true}' \
--header "Authorization: Bearer [MANAGEMENT API TOKEN]" \
--header 'cache-control: no-cache' \
--header 'content-type: application/json' \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment