GoogleSignInConfiguration.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // <copyright file="GoogleSignInConfiguration.cs" company="Google Inc.">
  2. // Copyright (C) 2017 Google Inc. All Rights Reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. // </copyright>
  16. namespace Google {
  17. using System.Collections.Generic;
  18. /// <summary>
  19. /// Configuration properties for Google Sign-In.
  20. /// </summary>
  21. public class GoogleSignInConfiguration {
  22. /// <summary>Set to true to use games signin, false for default signin.
  23. /// </summary>
  24. /// <remarks>Note: The Games configuration is not supported on non-Android
  25. /// platforms.
  26. /// If games configuration is used, you must also add the
  27. /// play-services-games libraries and dependencies.
  28. /// See the README for more details.
  29. /// </remarks>
  30. public bool UseGameSignIn = false;
  31. /// <summary>Web client id associated with this app.</summary>
  32. /// <remarks>Required for requesting auth code or id token.</remarks>
  33. public string WebClientId = null;
  34. /// <summary>Set to true for getting an auth code when authenticating.
  35. /// </summary>
  36. public bool RequestAuthCode = false;
  37. /// <summary>Set to true to request to reset the refresh token.
  38. /// Causes re-consent.
  39. /// </summary>
  40. public bool ForceTokenRefresh = false;
  41. /// <summary>Request email address, requires consent.</summary>
  42. public bool RequestEmail = false;
  43. /// <summary>Request id token, requires consent.</summary>
  44. public bool RequestIdToken = false;
  45. /// <summary>Request profile information, requires consent.</summary>
  46. public bool RequestProfile = false;
  47. /// <summary>Hides popup UIs from games services.</summary>
  48. /// <remarks>Used with games signin to show or hide the connecting popup UI
  49. /// and to associate an invisible view for other popups. This is
  50. /// recommended for VR applications. This has no effect if UseGameSignIn is
  51. /// false.
  52. /// </remarks>
  53. public bool HidePopups = false;
  54. /// <summary>Account name to use when authenticating,
  55. /// null indicates use default.</summary>
  56. public string AccountName = null;
  57. /// <summary>Additional scopes to request, requires consent.</summary>
  58. public IEnumerable<string> AdditionalScopes = null;
  59. }
  60. }