Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11] Recaptcha Enterprise integration #13154

Open
paulb777 opened this issue Jun 19, 2024 · 2 comments
Open

[v11] Recaptcha Enterprise integration #13154

paulb777 opened this issue Jun 19, 2024 · 2 comments

Comments

@paulb777
Copy link
Member

Description

Verify Recaptcha Enterprise in v11. Since it relies on reflection, the code is a bit tricky. Follow-up to #13151

  • Verify retrieveRecaptchaToken reflection and functionality
  • Full end-to-end testing of Recaptcha Enterprise integration

Reproducing the issue

Click Initialize Recaptcha Config in the Sample App

Firebase SDK Version

11.0.0

Xcode Version

15.3

Installation Method

Swift Package Manager

Firebase Product(s)

Authentication

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@paulb777 paulb777 added this to the Firebase 11 - M151 milestone Jun 19, 2024
@paulb777
Copy link
Member Author

More investigation today on the following block of code:

Two issues:

  1. Missing defaultAction in map leads to not linked failure:
(lldb) po action 
FirebaseAuth.AuthRecaptchaAction.defaultAction
(lldb) po actionToStringMap 
▿ 3 elements
  ▿ 0 : 2 elements
    - key : FirebaseAuth.AuthRecaptchaAction.signUpPassword
    - value : "signUpPassword"
  ▿ 1 : 2 elements
    - key : FirebaseAuth.AuthRecaptchaAction.signInWithPassword
    - value : "signInWithPassword"
  ▿ 2 : 2 elements
    - key : FirebaseAuth.AuthRecaptchaAction.getOobCode
    - value : "getOobCode"
  1. Fails to do reflection:
po NSClassFromString("RecaptchaAction")  as? any RCAActionProtocol.Type
nil

Screenshot 2024-06-26 at 4 45 51 PM

@paulb777
Copy link
Member Author

Why does this cast fail?

Screenshot 2024-06-27 at 8 51 16 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant