GIDSignInConstants.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright 2025 Google LLC
  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. */
  16. #import <Foundation/Foundation.h>
  17. NS_ASSUME_NONNULL_BEGIN
  18. #pragma mark - Parameters in the callback URL coming back from browser.
  19. extern NSString *const kAuthorizationCodeKeyName;
  20. extern NSString *const kOAuth2ErrorKeyName;
  21. extern NSString *const kOAuth2AccessDenied;
  22. extern NSString *const kEMMPasscodeInfoRequiredKeyName;
  23. /// Error string for user cancelations.
  24. extern NSString *const kUserCanceledError;
  25. /// Minimum time to expiration for a restored access token.
  26. extern const NSTimeInterval kMinimumRestoredAccessTokenTimeToExpire;
  27. /// Parameters for the auth and token exchange endpoints.
  28. extern NSString *const kAudienceParameter;
  29. extern NSString *const kOpenIDRealmParameter;
  30. extern NSString *const kBasicProfileEmailKey;
  31. extern NSString *const kBasicProfilePictureKey;
  32. extern NSString *const kBasicProfileNameKey;
  33. extern NSString *const kBasicProfileGivenNameKey;
  34. extern NSString *const kBasicProfileFamilyNameKey;
  35. extern NSString *const kTokenURLTemplate;
  36. extern NSString *const kUserInfoURLTemplate;
  37. extern const NSTimeInterval kFetcherMaxRetryInterval;
  38. extern NSErrorDomain const kGIDSignInErrorDomain;
  39. extern NSString *const kKeychainError;
  40. extern NSString *const kGTMAppAuthKeychainName;
  41. /// The EMM support version
  42. extern NSString *const kEMMVersion;
  43. /// Browser callback path
  44. extern NSString *const kBrowserCallbackPath;
  45. extern NSString *const kAudienceParameter;
  46. extern NSString *const kOpenIDRealmParameter;
  47. extern NSString *const kIncludeGrantedScopesParameter;
  48. extern NSString *const kLoginHintParameter;
  49. extern NSString *const kHostedDomainParameter;
  50. @interface GIDSignInConstants : NSObject
  51. @end
  52. NS_ASSUME_NONNULL_END