-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DXCDT-677 : Support different strategies connection while creating a …
…user (#1091) * DXCDT-677 : Format methods to support different strategies connection while creating a user * DXCDT-677 : Fix logic in create users basis on strategy * DXCDT-677 : Add logic to support creation of users with sms and email connections * DXCDT-677 : Update docs and add tests and support new output format basis on the type of connection * DXCDT-677 : Fix lints and add a manual check on provided flags info basis on the connection type. * DXCDT-677 : Update logic for update-user * DXCDT-677 : Fix logic for update-user and update docs * DXCDT-677 : Revert integration tests for users create related to password-less connections
- Loading branch information
1 parent
952ce1f
commit c5f2f43
Showing
5 changed files
with
317 additions
and
124 deletions.
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 |
---|---|---|
|
@@ -24,6 +24,10 @@ auth0 users create [flags] | |
auth0 users create --name "John Doe" --email [email protected] | ||
auth0 users create --name "John Doe" --email [email protected] --connection-name "Username-Password-Authentication" --username "example" | ||
auth0 users create -n "John Doe" -e [email protected] -c "Username-Password-Authentication" -u "example" --json | ||
auth0 users create -n "John Doe" -e [email protected] -c "email" --json | ||
auth0 users create -e [email protected] -c "email" | ||
auth0 users create --phone-number +916898989898 --connection-name "sms" | ||
auth0 users create -m +916898989898 -c "sms" --json | ||
``` | ||
|
||
|
||
|
@@ -35,6 +39,7 @@ auth0 users create [flags] | |
--json Output in json format. | ||
-n, --name string The user's full name. | ||
-p, --password string Initial password for this user (mandatory for non-SMS connections). | ||
-m, --phone-number string The user's phone number. | ||
-u, --username string The user's username. Only valid if the connection requires a username. | ||
``` | ||
|
||
|
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 |
---|---|---|
|
@@ -22,7 +22,12 @@ auth0 users update [flags] | |
auth0 users update | ||
auth0 users update <user-id> | ||
auth0 users update <user-id> --name "John Doe" | ||
auth0 users update <user-id> --name "John Doe" --email [email protected] | ||
auth0 users update <user-id> -n "John Kennedy" -e [email protected] --json | ||
auth0 users update <user-id> -n "John Kennedy" -p <newPassword> | ||
auth0 users update <user-id> -p <newPassword> | ||
auth0 users update <user-id> -e [email protected] | ||
auth0 users update <user-id> --phone-number +916898989899 | ||
auth0 users update <user-id> -m +916898989899 --json | ||
``` | ||
|
||
|
||
|
@@ -34,6 +39,8 @@ auth0 users update [flags] | |
--json Output in json format. | ||
-n, --name string The user's full name. | ||
-p, --password string Initial password for this user (mandatory for non-SMS connections). | ||
-m, --phone-number string The user's phone number. | ||
-u, --username string The user's username. Only valid if the connection requires a username. | ||
``` | ||
|
||
|
||
|
Oops, something went wrong.