-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for configuring phone provider #1137
Open
ramya18101
wants to merge
10
commits into
main
Choose a base branch
from
DXCDT-858-Extensibility-as-custom-provider-Auth0-cli-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d6bd6d3
Add support for configuring phone provider
ramya18101 d4efd98
Update docs and assign default_val
ramya18101 3e2ed01
Update docs and minor updates on event stream, email templates
ramya18101 722ff09
Fix email template unit tests
ramya18101 5be6ce1
Remove redundant functions
ramya18101 8f0fb7a
include unit tests for phone provider
ramya18101 4477ad4
fix unit tests and commented out the tf generate unit tests for time-…
ramya18101 b6a1871
resolve merge conflicts
ramya18101 1b2b864
update docs and comment tf generate integration tests for time being
ramya18101 d25dc86
add docs for phone provider list command
ramya18101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
layout: default | ||
has_toc: false | ||
--- | ||
# auth0 phone | ||
|
||
Configure the phone providers like twilio and custom | ||
|
||
## Commands | ||
|
||
- [auth0 phone provider](auth0_phone_provider.md) - Manage phone provider | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: default | ||
has_toc: false | ||
has_children: true | ||
--- | ||
# auth0 phone provider | ||
|
||
Manage custom and twilio phone provider for the tenant. | ||
|
||
## Commands | ||
|
||
- [auth0 phone provider create](auth0_phone_provider_create.md) - Create the phone provider | ||
- [auth0 phone provider delete](auth0_phone_provider_delete.md) - Delete the phone provider | ||
- [auth0 phone provider show](auth0_phone_provider_show.md) - Show the Phone provider | ||
- [auth0 phone provider update](auth0_phone_provider_update.md) - Update the phone provider | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
layout: default | ||
parent: auth0 phone provider | ||
has_toc: false | ||
--- | ||
# auth0 phone provider create | ||
|
||
Create the phone provider. | ||
|
||
To create interactively, use `auth0 phone provider create` with no arguments. | ||
|
||
To create non-interactively, supply the provider name and other information through the flags. | ||
|
||
## Usage | ||
``` | ||
auth0 phone provider create [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
``` | ||
auth0 phone provider create | ||
auth0 phone provider create --json | ||
auth0 phone provider create --provider twilio --disabled=false --credentials='{ "auth_token":"TheAuthToken" }' --configuration='{ "default_from": "admin@example.com", "sid": "+1234567890", "delivery_methods": ["text", "voice"] }' | ||
auth0 phone provider create --provider custom --enabled=true --default-from-address="admin@example.com" | ||
auth0 phone provider create -p twilio -d "false" -c '{ "auth_token":"TheAuthToken" }' -s '{ "default_from": "admin@example.com", "sid": "+1234567890", "delivery_methods": ["text", "voice"] } | ||
``` | ||
|
||
|
||
## Flags | ||
|
||
``` | ||
-s, --configuration settings string Configuration for the phone provider. formatted as JSON. | ||
-c, --credentials string Credentials for the phone provider, formatted as JSON. | ||
-d, --disabled Whether the provided is disabled (true) or enabled (false). | ||
--json Output in json format. | ||
-p, --provider string Provider name. Can be 'twilio', or 'custom' | ||
``` | ||
|
||
|
||
## Inherited Flags | ||
|
||
``` | ||
--debug Enable debug mode. | ||
--no-color Disable colors. | ||
--no-input Disable interactivity. | ||
--tenant string Specific tenant to use. | ||
``` | ||
|
||
|
||
## Related Commands | ||
|
||
- [auth0 phone provider create](auth0_phone_provider_create.md) - Create the phone provider | ||
- [auth0 phone provider delete](auth0_phone_provider_delete.md) - Delete the phone provider | ||
- [auth0 phone provider show](auth0_phone_provider_show.md) - Show the Phone provider | ||
- [auth0 phone provider update](auth0_phone_provider_update.md) - Update the phone provider | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
layout: default | ||
parent: auth0 phone provider | ||
has_toc: false | ||
--- | ||
# auth0 phone provider delete | ||
|
||
Delete the phone provider. | ||
|
||
To delete interactively, use `auth0 phone provider delete` with no arguments. | ||
|
||
To delete non-interactively, supply the phone provider id and the `--force` flag to skip confirmation. | ||
|
||
## Usage | ||
``` | ||
auth0 phone provider delete [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
``` | ||
auth0 provider delete | ||
auth0 phone provider rm | ||
auth0 phone provider delete <phone-provider-id> --force | ||
auth0 phone provider delete <phone-provider-id> | ||
auth0 phone provider rm --force | ||
``` | ||
|
||
|
||
## Flags | ||
|
||
``` | ||
--force Skip confirmation. | ||
``` | ||
|
||
|
||
## Inherited Flags | ||
|
||
``` | ||
--debug Enable debug mode. | ||
--no-color Disable colors. | ||
--no-input Disable interactivity. | ||
--tenant string Specific tenant to use. | ||
``` | ||
|
||
|
||
## Related Commands | ||
|
||
- [auth0 phone provider create](auth0_phone_provider_create.md) - Create the phone provider | ||
- [auth0 phone provider delete](auth0_phone_provider_delete.md) - Delete the phone provider | ||
- [auth0 phone provider show](auth0_phone_provider_show.md) - Show the Phone provider | ||
- [auth0 phone provider update](auth0_phone_provider_update.md) - Update the phone provider | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: default | ||
parent: auth0 phone provider | ||
has_toc: false | ||
--- | ||
# auth0 phone provider show | ||
|
||
Display information about the phone provider. | ||
|
||
## Usage | ||
``` | ||
auth0 phone provider show [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
``` | ||
auth0 phone provider show | ||
auth0 phone provider show --json | ||
``` | ||
|
||
|
||
## Flags | ||
|
||
``` | ||
--json Output in json format. | ||
``` | ||
|
||
|
||
## Inherited Flags | ||
|
||
``` | ||
--debug Enable debug mode. | ||
--no-color Disable colors. | ||
--no-input Disable interactivity. | ||
--tenant string Specific tenant to use. | ||
``` | ||
|
||
|
||
## Related Commands | ||
|
||
- [auth0 phone provider create](auth0_phone_provider_create.md) - Create the phone provider | ||
- [auth0 phone provider delete](auth0_phone_provider_delete.md) - Delete the phone provider | ||
- [auth0 phone provider show](auth0_phone_provider_show.md) - Show the Phone provider | ||
- [auth0 phone provider update](auth0_phone_provider_update.md) - Update the phone provider | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
layout: default | ||
parent: auth0 phone provider | ||
has_toc: false | ||
--- | ||
# auth0 phone provider update | ||
|
||
Update the phone provider. | ||
|
||
To update interactively, use `auth0 phone provider update` with no arguments. | ||
|
||
To update non-interactively, supply the provider name and other information through the flags. | ||
|
||
## Usage | ||
``` | ||
auth0 phone provider update [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
``` | ||
auth0 phone provider update | ||
auth0 phone provider update --json | ||
auth0 phone provider update --disabled=false | ||
auth0 phone provider update --credentials='{ "auth_token":"NewAuthToken" }' | ||
auth0 phone provider update --configuration='{ "delivery_methods": ["voice"] }' | ||
auth0 phone provider update --configuration='{ "default_from": admin@example.com }' | ||
auth0 phone provider update --provider twilio --disabled=false --credentials='{ "auth_token":"NewAuthToken" }' --configuration='{ "default_from": "admin@example.com", "delivery_methods": ["voice", "text"] }' | ||
auth0 phone provider update --provider custom --disabled=false --configuration='{ "delivery_methods": ["voice", "text"] }" | ||
``` | ||
|
||
|
||
## Flags | ||
|
||
``` | ||
-s, --configuration settings string Configuration for the phone provider. formatted as JSON. | ||
-c, --credentials string Credentials for the phone provider, formatted as JSON. | ||
-d, --disabled Whether the provided is disabled (true) or enabled (false). | ||
--json Output in json format. | ||
-p, --provider string Provider name. Can be 'twilio', or 'custom' | ||
``` | ||
|
||
|
||
## Inherited Flags | ||
|
||
``` | ||
--debug Enable debug mode. | ||
--no-color Disable colors. | ||
--no-input Disable interactivity. | ||
--tenant string Specific tenant to use. | ||
``` | ||
|
||
|
||
## Related Commands | ||
|
||
- [auth0 phone provider create](auth0_phone_provider_create.md) - Create the phone provider | ||
- [auth0 phone provider delete](auth0_phone_provider_delete.md) - Delete the phone provider | ||
- [auth0 phone provider show](auth0_phone_provider_show.md) - Show the Phone provider | ||
- [auth0 phone provider update](auth0_phone_provider_update.md) - Update the phone provider | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use release version