
I have tried to change "Bundle id" in Apple Auth settings to "<TEAM_ID>.<BUNDLE_ID>" as suggested. But still not working 😦

When I click "Use a different Apple ID", it opens a apple page that says "invalid_client"

When I put <bundle_id> in bundle id section in Apple Auth options, It shows "invalid_request"

Still seems like there's some misconfiguration between Appwrite and Apple 😕

I have revoked the apple sign in key and generate new one. But still same

Maybe there's an extra space somewhere.

So what you put as the service id in apple is what's in the bundle id in Appwrite, right?

Yes, When i tried put the service id in bundle id section in the Appwrite, it gives me invalid_client

You can look at the 2 photos I shared

I have double checked everything, there is no extra space

I will try again tomorrow, maybe the problem is on the Apple side

You can try browsing to https://[host]/v1/account/sessions/oauth2/apple? project=[project id]
on a desktop browser to see if there is some additional information in the browser network logs

I am getting 301 for this request, all remaining are have status 200

When I delete "<team_id>." from "<team_id>.<bundle_id>", it gives me 400

301 is expected. Anything else in the URL? Any other redirects?

https://appleid.apple.com/auth/authorize?client_id=<TEAM_ID>.<BUNDLE_ID>&redirect_uri=https://<HOST>/v1/account/sessions/oauth2/callback/apple/<PROJECT_ID>&state={"success":"https:<HOST>authoauth2success","failure":"https:<HOST>authoauth2failure"}&response_type=code&response_mode=form_post&scope=name%20email
this is my url

What returns 400? Appwrite or apple?

https://appleid.apple.com/auth/authorize?client_id<BUNDLE_ID>&redirect_uri=https://<HOST>/v1/account/sessions/oauth2/callback/apple/<PROJECT_ID>&state={"success":"https://<HOST>/auth/oauth2/success","failure":"https://<HOST>/auth/oauth2/failure"}&response_type=code&response_mode=form_post&scope=name%20email
when I send this URL (only "<TEAM_ID>." removed") I get this:

What's the page show?

When I dont send state parameter in the url like this:
https://appleid.apple.com/auth/authorize?client_id=<BUNDLE_ID>&redirect_uri=https://<HOST>/v1/account/sessions/oauth2/callback/apple/<PROJECT_ID>&response_type=code&response_mode=form_post&scope=name%20email
I get invaid_request with all 200

Nothing, empty black page

Oh this is missing an equal after client id

I solved the problem, I got one name mixed up because the Apple Developer pages are very similar. Here are the necessary things for Apple sign in:
- Create a new key under "Keys"
- Enter the App ID of the app in the "Identifier" section, authorize Apple Sign In and configure it.
- Add a new "Service ID" in the "Identifier" section and fill in the relevant sections. (I missed this, I thought it was enough to authorize the App ID and configure it there, my mistake)
Thanks @Steven, sorry for taking your time, my bad.

[SOLVED] Sign in with Apple, "Sign Up Not Completed"

Ya apple is very confusing. I'm glad you got it working!
Recommended threads
- Can't create a function. The user interf...
I am trying to create a server-side function. I am on the free tier. **I already have three functions that work properly** that I created a few months ago. Now,...
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
- Svelte App Whitelist
https://appwrite.io/docs/quick-starts/sveltekit Based on the example from the docs, how woul'd I go about adding a "whitelist" that checks if the user has a sp...
