Class UserInfoResult
The user info result object
Inherited Members
Namespace: Dropbox.Api.Openid
Assembly: Dropbox.Api.dll
Syntax
public class UserInfoResult
Constructors
View SourceUserInfoResult(string, string, string, bool?, string, string)
Initializes a new instance of the UserInfoResult class.
Declaration
public UserInfoResult(string familyName = null, string givenName = null, string email = null, bool? emailVerified = null, string iss = "", string sub = "")
Parameters
| Type | Name | Description |
|---|---|---|
| string | familyName | Last name of the user. |
| string | givenName | First name of the user. |
| string | The user's email address. Be aware it's possible that the user
has since lost access to their email. Note: email is not a unique or stable
identifier for a Dropbox account. Users can change their email, and emails can be
reused by different accounts. Apps should not use email as a key for account
identification; use |
|
| bool? | emailVerified | If the user's email address is verified. |
| string | iss | Issuer of the token (in this case Dropbox). |
| string | sub | An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. The account_id is a unique and stable identifier for a Dropbox account, suitable for use as a key in authentication and account management. |
Properties
View SourceThe user's email address. Be aware it's possible that the user has since lost access to their email. Note: email is not a unique or stable identifier for a Dropbox account. Users can change their email, and emails can be reused by different accounts. Apps should not use email as a key for account identification; use Sub instead.
Declaration
public string Email { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
EmailVerified
If the user's email address is verified.
Declaration
public bool? EmailVerified { get; protected set; }
Property Value
| Type | Description |
|---|---|
| bool? |
FamilyName
Last name of the user.
Declaration
public string FamilyName { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
GivenName
First name of the user.
Declaration
public string GivenName { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Iss
Issuer of the token (in this case Dropbox).
Declaration
public string Iss { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Sub
An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. The account_id is a unique and stable identifier for a Dropbox account, suitable for use as a key in authentication and account management.
Declaration
public string Sub { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |