FIRFinalizePasskeySignInRequest.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright 2023 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/LICENSE2.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 "FirebaseAuth/Sources/Backend/FIRAuthRPCRequest.h"
  17. #import "FirebaseAuth/Sources/Backend/FIRIdentityToolkitRequest.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /** @class FIRFinalizePasskeySignInRequest
  20. @brief Represents the parameters for the finalizePasskeySignIn endpoint.
  21. */
  22. @interface FIRFinalizePasskeySignInRequest : FIRIdentityToolkitRequest <FIRAuthRPCRequest>
  23. /**
  24. @property credentialID
  25. @brief The credential ID.
  26. */
  27. @property(nonatomic, copy, readonly) NSString *credentialID;
  28. /**
  29. @property clientDataJson
  30. @brief The CollectedClientData object from the authenticator.
  31. */
  32. @property(nonatomic, copy, readonly) NSString *clientDataJson;
  33. /**
  34. @property authenticatorData
  35. @brief The AuthenticatorData from the authenticator.
  36. */
  37. @property(nonatomic, copy, readonly) NSString *authenticatorData;
  38. /**
  39. @property signature
  40. @brief The signature from the authenticator.
  41. */
  42. @property(nonatomic, copy, readonly) NSString *signature;
  43. /**
  44. @property userID
  45. @brief The user handle
  46. */
  47. @property(nonatomic, copy, readonly) NSString *userID;
  48. - (nullable instancetype)initWithCredentialID:(NSString *)credentialID
  49. clientDataJson:(NSString *)clientDataJson
  50. authenticatorData:(NSString *)authenticatorData
  51. signature:(NSString *)signature
  52. userID:(NSString *)userID
  53. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration;
  54. @end
  55. NS_ASSUME_NONNULL_END