-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support first middle nad last name user attributes (#335)
Both auth SDK and managemenet SDK related to descope/etc#4501
- Loading branch information
Showing
5 changed files
with
59 additions
and
13 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 |
---|---|---|
|
@@ -87,6 +87,8 @@ The user can either `sign up`, `sign in` or `sign up or in` | |
loginID := "[email protected]" | ||
user := &descope.User{ | ||
Name: "Desmond Copeland", | ||
GivenName: "Desmond", | ||
FamilyName: "Copeland", | ||
Phone: "212-555-1234", | ||
Email: loginID, | ||
} | ||
|
@@ -286,6 +288,8 @@ Existing users can add TOTP using the `update` function. | |
loginID := "[email protected]" | ||
user := &descope.User{ | ||
Name: "Desmond Copeland", | ||
GivenName: "Desmond", | ||
FamilyName: "Copeland", | ||
Phone: "212-555-1234", | ||
Email: loginID, | ||
} | ||
|
@@ -328,6 +332,8 @@ loginID := "[email protected]" | |
password := "qYlvi65KaX" | ||
user := &descope.User{ | ||
Name: "Desmond Copeland", | ||
GivenName: "Desmond", | ||
FamilyName: "Copeland", | ||
Email: loginID, | ||
} | ||
authInfo, err := descopeClient.Auth.Password().SignUp(loginID, user, password, nil) | ||
|
@@ -596,6 +602,8 @@ You can create, update, delete or load users, as well as search according to fil | |
userReq := &descope.UserRequest{} | ||
userReq.Email = "[email protected]" | ||
userReq.Name = "Desmond Copeland" | ||
userReq.GivenName = "Desmond" | ||
userReq.FamilyName = "Copeland" | ||
userReq.Tenants = []*descope.AssociatedTenant{ | ||
{TenantID: "tenant-ID1", Roles: []string{"role-name1"}}, | ||
{TenantID: "tenant-ID2"}, | ||
|
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