OAuthConstants.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. namespace AWSClientAuth
  10. {
  11. constexpr char OAuthClientIdBodyKey[] = "client_id";
  12. constexpr char OAuthClientSecretBodyKey[] = "client_secret";
  13. constexpr char OAuthDeviceCodeBodyKey[] = "device_code";
  14. constexpr char OAuthScopeBodyKey[] = "scope";
  15. constexpr char OAuthScopeBodyValue[] = "profile";
  16. constexpr char OAuthGrantTypeBodyKey[] = "grant_type";
  17. constexpr char OAuthRefreshTokenBodyKey[] = "refresh_token";
  18. constexpr char OAuthRefreshTokenBodyValue[] = "refresh_token";
  19. constexpr char OAuthResponseTypeBodyKey[] = "response_type";
  20. constexpr char OAuthContentTypeHeaderKey[] = "Content-Type";
  21. constexpr char OAuthContentTypeHeaderValue[] = "application/x-www-form-urlencoded";
  22. constexpr char OAuthContentLengthHeaderKey[] = "Content-Length";
  23. constexpr char OAuthUserCodeResponseKey[] = "user_code";
  24. constexpr char OAuthIdTokenResponseKey[] = "id_token";
  25. constexpr char OAuthAccessTokenResponseKey[] = "access_token";
  26. constexpr char OAuthRefreshTokenResponseKey[] = "refresh_token";
  27. constexpr char OAuthExpiresInResponseKey[] = "expires_in";
  28. constexpr char OAuthErrorResponseKey[] = "error";
  29. } // namespace AWSClientAuth