Sign in with apple using firebase and angular gives me "Invalid web redirect url" error

Hi @everyone, I have set up the proper app id, serviced ID along with return URL, domains and subdomains(Example domains and subdomains: asdfjkl.firebaseapp.com and return URL: https://asdfjkl.firebaseapp.com/__/auth/handler) in developer.apple.com. And I have created the key as well and added key ID and private key, services ID in firebase apple sign in console as well. But I'm getting Error as "Invalid web redirect url". I haven't provided the App ID, services ID, firebase project ID, Key secret here as they're confidential. Please let me know if any further details are needed.

Answered by DTS Engineer in 806658022

HI @anshuman_bapna,

Since these requests are for a web service, Sign in with Apple expects the client ID used in your request parameters (as well as in the client secret when validating tokens) to match the Services ID.

Please see the following technote for more information about these error responses:

TN3107: Resolving Sign in with Apple response errors https://developer.apple.com/documentation/technotes/tn3107-resolving-sign-in-with-apple-response-errors

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

HI @anshuman_bapna,

Since these requests are for a web service, Sign in with Apple expects the client ID used in your request parameters (as well as in the client secret when validating tokens) to match the Services ID.

Please see the following technote for more information about these error responses:

TN3107: Resolving Sign in with Apple response errors https://developer.apple.com/documentation/technotes/tn3107-resolving-sign-in-with-apple-response-errors

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

I am having a similar issue, and TN3107 is not providing sufficient information to track down the problem. Specifically, the use case that I am trying to enable is for users who have an account on my iOS app with their AppleID to log in to my website and upload an audio file for use in the app. This works for users who have authenticated with email or with Google sign in. But, SignIn with AppleID gives Invalid Request, Invalid Web Redirect URL, if I use https://<myfirebaseprojectid>.firebaseapp.com/__/auth/handler as the redirect URL with the ServicesID set in firebase to my bundle identifier, and it gives me Invalid Client if I use the ServicesID set in firebase to the ServicesID identifer set in my Apple Identifers list. Please provide some additional direction where I may be going astray. The documentation would indicate that I need to have the ServicesID identifier used in Firebase, and the redirect handler set as above, but that is throwing an Invalid Client error. Firebase Authentication is working just fine for app authentication.

Sign in with apple using firebase and angular gives me "Invalid web redirect url" error
 
 
Q