GoogleOAuthScopes.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. namespace Application.Abstractions.YouTube;
  2. /// <summary>
  3. /// YouTube 연동에 필요한 Google OAuth 2.0 Scopes
  4. /// </summary>
  5. public static class GoogleOAuthScopes
  6. {
  7. public const string OpenId = "openid";
  8. public const string Email = "email";
  9. public const string Profile = "profile";
  10. /// <summary>YouTube 계정의 읽기 전용 접근 (구독 확인 등)</summary>
  11. public const string YouTubeReadOnly = "https://www.googleapis.com/auth/youtube.readonly";
  12. /// <summary>YouTube 채팅 읽기/쓰기 (force-ssl 필요)</summary>
  13. public const string YouTubeForceSsl = "https://www.googleapis.com/auth/youtube.force-ssl";
  14. /// <summary>YouTube 멤버십 확인</summary>
  15. public const string YouTubeChannelMemberships = "https://www.googleapis.com/auth/youtube.channel-memberships.creator";
  16. /// <summary>기본 YouTube 연동에 필요한 최소 scope 집합</summary>
  17. public static readonly string[] Default =
  18. [
  19. OpenId,
  20. Email,
  21. Profile,
  22. YouTubeReadOnly,
  23. YouTubeForceSsl
  24. ];
  25. }