Skip to content

Commit

Permalink
DXCDT-677 : Support different strategies connection while creating a …
Browse files Browse the repository at this point in the history
…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
ramya18101 authored Oct 17, 2024
1 parent 952ce1f commit c5f2f43
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 124 deletions.
5 changes: 5 additions & 0 deletions docs/auth0_users_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ auth0 users create [flags]
auth0 users create --name "John Doe" --email john@example.com
auth0 users create --name "John Doe" --email john@example.com --connection-name "Username-Password-Authentication" --username "example"
auth0 users create -n "John Doe" -e john@example.com -c "Username-Password-Authentication" -u "example" --json
auth0 users create -n "John Doe" -e john@example.com -c "email" --json
auth0 users create -e john@example.com -c "email"
auth0 users create --phone-number +916898989898 --connection-name "sms"
auth0 users create -m +916898989898 -c "sms" --json
```


Expand All @@ -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.
```

Expand Down
9 changes: 8 additions & 1 deletion docs/auth0_users_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 john.doe@example.com
auth0 users update <user-id> -n "John Kennedy" -e johnk@example.com --json
auth0 users update <user-id> -n "John Kennedy" -p <newPassword>
auth0 users update <user-id> -p <newPassword>
auth0 users update <user-id> -e johnk@example.com
auth0 users update <user-id> --phone-number +916898989899
auth0 users update <user-id> -m +916898989899 --json
```


Expand All @@ -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.
```


Expand Down
Loading

0 comments on commit c5f2f43

Please sign in to comment.