You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.0 KiB

6 years ago
  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 FIRVerifyCustomTokenRequest
  21. @brief Represents the parameters for the verifyCustomToken endpoint.
  22. */
  23. @interface FIRVerifyCustomTokenRequest : FIRIdentityToolkitRequest <FIRAuthRPCRequest>
  24. /** @property token
  25. @brief The self-signed token from the client's BYOAuth server.
  26. */
  27. @property(nonatomic, copy, readonly) NSString *token;
  28. /** @property returnSecureToken
  29. @brief Whether the response should return access token and refresh token directly.
  30. @remarks The default value is @c YES .
  31. */
  32. @property(nonatomic, assign) BOOL returnSecureToken;
  33. /** @fn initWithEndpoint:requestConfiguration:
  34. @brief Please use initWithToken:requestConfiguration: instead.
  35. */
  36. - (nullable instancetype)initWithEndpoint:(NSString *)endpoint requestConfiguration:
  37. (FIRAuthRequestConfiguration *)requestConfiguration NS_UNAVAILABLE;
  38. /** @fn initWithToken:requestConfiguration:
  39. @brief Designated initializer.
  40. @param token The self-signed token from the client's BYOAuth server.
  41. @param requestConfiguration An object containing configurations to be added to the request.
  42. */
  43. - (nullable instancetype)initWithToken:(NSString *)token
  44. requestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
  45. NS_DESIGNATED_INITIALIZER;
  46. @end
  47. NS_ASSUME_NONNULL_END