Created
January 24, 2019 18:03
-
-
Save Tanver-Hasan/7479ea34004cf007f2fa074311a94d9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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