Sin descripción

FIRVerifyPasswordRequest.h 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright 2017 Google
  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. #import "FIRAuthRPCRequest.h"
  18. #import "FIRIdentityToolkitRequest.h"
  19. NS_ASSUME_NONNULL_BEGIN
  20. /** @class FIRVerifyPasswordRequest
  21. @brief Represents the parameters for the verifyPassword endpoint.
  22. @see https://developers.google.com/identity/toolkit/web/reference/relyingparty/verifyPassword
  23. */
  24. @interface FIRVerifyPasswordRequest : FIRIdentityToolkitRequest <FIRAuthRPCRequest>
  25. /** @property email
  26. @brief The email of the user.
  27. */
  28. @property(nonatomic, copy) NSString *email;
  29. /** @property password
  30. @brief The password inputed by the user.
  31. */
  32. @property(nonatomic, copy) NSString *password;
  33. /** @property pendingIDToken
  34. @brief The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
  35. */
  36. @property(nonatomic, copy, nullable) NSString *pendingIDToken;
  37. /** @property captchaChallenge
  38. @brief The captcha challenge.
  39. */
  40. @property(nonatomic, copy, nullable) NSString *captchaChallenge;
  41. /** @property captchaResponse
  42. @brief Response to the captcha.
  43. */
  44. @property(nonatomic, copy, nullable) NSString *captchaResponse;
  45. /** @property returnSecureToken
  46. @brief Whether the response should return access token and refresh token directly.
  47. @remarks The default value is @c YES .
  48. */
  49. @property(nonatomic, assign) BOOL returnSecureToken;
  50. /** @fn initWithEndpoint:requestConfiguration:
  51. @brief Please use initWithEmail:password:requestConfiguration:
  52. */
  53. - (nullable instancetype)initWithEndpoint:(NSString *)endpoint
  54. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
  55. NS_UNAVAILABLE;
  56. /** @fn initWithEmail:password:requestConfiguration:
  57. @brief Designated initializer.
  58. @param email The email of the user.
  59. @param password The password inputed by the user.
  60. @param requestConfiguration The configu
  61. */
  62. - (nullable instancetype)initWithEmail:(NSString *)email
  63. password:(NSString *)password
  64. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
  65. NS_DESIGNATED_INITIALIZER;
  66. @end
  67. NS_ASSUME_NONNULL_END