GIDSignInConstants.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright 2024 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. /// The URL template for the authorization endpoint.
  18. extern NSString *const kAuthorizationURLTemplate;
  19. /// The URL template for the token endpoint.
  20. extern NSString *const kTokenURLTemplate;
  21. /// Expected path in the URL scheme to be handled.
  22. extern NSString *const kBrowserCallbackPath;
  23. /// The name of the audience parameter for the auth and token exchange endpoints.
  24. extern NSString *const kAudienceParameter;
  25. /// The name of the open ID realm parameter for the auth and token exchange endpoints.
  26. extern NSString *const kOpenIDRealmParameter;
  27. /// The name of the include granted scopes parameter for the auth and token exchange endpoints.
  28. extern NSString *const kIncludeGrantedScopesParameter;
  29. /// The name of the login hint parameter for the auth and token exchange endpoints.
  30. extern NSString *const kLoginHintParameter;
  31. /// The name of the hosted domain parameter for the auth and token exchange endpoints.
  32. extern NSString *const kHostedDomainParameter;
  33. /// The name of the error key that occurred during the authorization or token exchange process.
  34. extern NSString *const kOAuth2ErrorKeyName;
  35. /// The value of the error key when the user cancels the authorization or token exchange process.
  36. extern NSString *const kOAuth2AccessDenied;
  37. /// The name of the key that indicates whether a passocde is required for EMM.
  38. extern NSString *const kEMMPasscodeInfoRequiredKeyName;
  39. /// The error string for user cancelation in the sign-in flow.
  40. extern NSString *const kUserCanceledSignInError;
  41. /// The error string for user cancelation in the verify flow.
  42. extern NSString *const kUserCanceledVerifyError;
  43. /// Minimum time to expiration for a restored access token.
  44. extern const NSTimeInterval kMinimumRestoredAccessTokenTimeToExpire;