Skip to content

Instantly share code, notes, and snippets.

@hoekma
Created June 19, 2017 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoekma/7afa5444098a863d240ea2881e08bd53 to your computer and use it in GitHub Desktop.
Save hoekma/7afa5444098a863d240ea2881e08bd53 to your computer and use it in GitHub Desktop.
Requested change for Google.Apis.Auth.GoogleJssonWebSignature.Payload
/// <summary>
/// The payload as specified in
/// https://developers.google.com/accounts/docs/OAuth2ServiceAccount#formingclaimset.
/// </summary>
public class Payload : JsonWebSignature.Payload {
/// <summary>
/// a space-delimited list of the permissions the application requests or <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("scope")]
public string Scope { get; set; }
/// <summary>
/// The email address of the user for which the application is requesting delegated access.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("prn")]
public string Prn { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the email associated with thie JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("email")]
public string Email { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the email associated with thie JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("email_verified")]
public bool EmailVerified { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the name associated with this JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public string Name { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the picture https://address associated with this JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("picture")]
public string Picture { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the given name associated with this JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("given_name")]
public string GivenName { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the family name associated with this JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("family_name")]
public string FamilyName { get; set; }
/// <summary>
/// Gets or sets type claim that identifies the locale associated with thie JWT
/// <c>null</c>.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("locale")]
public string Locale { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment