GIDSignInConstants.m 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 "GIDSignInConstants.h"
  17. NSString *const kAuthorizationCodeKeyName = @"code";
  18. NSString *const kOAuth2ErrorKeyName = @"error";
  19. NSString *const kOAuth2AccessDenied = @"access_denied";
  20. NSString *const kEMMPasscodeInfoRequiredKeyName = @"emm_passcode_info_required";
  21. NSString *const kUserCanceledError = @"The user canceled the sign-in flow.";
  22. const NSTimeInterval kMinimumRestoredAccessTokenTimeToExpire = 600.0;
  23. NSString *const kAudienceParameter = @"audience";
  24. NSString *const kOpenIDRealmParameter = @"openid.realm";
  25. NSString *const kBasicProfileEmailKey = @"email";
  26. NSString *const kBasicProfilePictureKey = @"picture";
  27. NSString *const kBasicProfileNameKey = @"name";
  28. NSString *const kBasicProfileGivenNameKey = @"given_name";
  29. NSString *const kBasicProfileFamilyNameKey = @"family_name";
  30. NSString *const kTokenURLTemplate = @"https://%@/token";
  31. NSString *const kUserInfoURLTemplate = @"https://%@/oauth2/v3/userinfo?access_token=%@";
  32. // TODO: Uncomment this once removed from `GIDSignIn.h`
  33. //NSErrorDomain const kGIDSignInErrorDomain = @"com.google.GIDSignIn";
  34. const NSTimeInterval kFetcherMaxRetryInterval = 15.0;
  35. NSString *const kKeychainError = @"keychain error";
  36. NSString *const kGTMAppAuthKeychainName = @"auth";
  37. NSString *const kEMMVersion = @"1";
  38. NSString *const kBrowserCallbackPath = @"/oauth2callback";
  39. NSString *const kIncludeGrantedScopesParameter = @"include_granted_scopes";
  40. NSString *const kLoginHintParameter = @"login_hint";
  41. NSString *const kHostedDomainParameter = @"hd";
  42. @implementation GIDSignInConstants
  43. @end