GoogleOAuthScopes.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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>
  17. /// 기본 YouTube 연동에 필요한 최소 scope 집합.
  18. /// 현재 앱은 읽기 전용 기능만 사용하므로 youtube.readonly 만 요청한다.
  19. /// (채팅 쓰기/모더레이션 도입 시 YouTubeForceSsl 추가 — 단 OAuth 인증 영상에서 해당 기능 시연 필요)
  20. /// </summary>
  21. public static readonly string[] Default =
  22. [
  23. OpenId,
  24. Email,
  25. Profile,
  26. YouTubeReadOnly
  27. ];
  28. }