Sign in With Apple Problem on iOS

I am implementing Sign In With Apple for a web app, and am having trouble with signing in on an iOS device.

I manually create the Auth URL, of the format:

https://appleid.apple.com/auth/authorize?response_type=code&state={STATE}&client_id={MY_CLIENT_ID}&redirect_uri={MY_REDIRECT_URI}&scope=openid+name+email&response_mode=form_post

When a user clicks the Sign In link on desktop, it brings me to the screen shown below. After entering your Apple ID and password, a login event with a code is sent to my backend/Redirect URI. Everything works as expected and the user is logged in successfully.

On iOS (I've tested in both Chrome and Safari for iPhone), clicking the link gives me the following popup. Hitting continue appears to complete the login process, but nothing happens. No code is sent to my Redirect URI, and the user is not logged in. It seems like Apple is just "swallowing" this login and not sending the appropriate request to my Redirect URI. What is happening? How can I fix this?

Answered by DTS Engineer in 801280022

Hi @JacksonT93,

You wrote:

I manually create the Auth URL, of the format:

https://appleid.apple.com/auth/authorize?response_type=code&state={STATE}&client_id={MY_CLIENT_ID}&redirect_uri={MY_REDIRECT_URI}&scope=openid+name+email&response_mode=form_post

Please use percent-encoding (with spaces between list elements) and report back with the results of your authorization request:

https://appleid.apple.com/auth/authorize?response_type=code&state={STATE}&client_id={MY_CLIENT_ID}&redirect_uri={MY_REDIRECT_URI}&scope=openid%20name%20email&response_mode=form_post

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @JacksonT93,

You wrote:

I manually create the Auth URL, of the format:

https://appleid.apple.com/auth/authorize?response_type=code&state={STATE}&client_id={MY_CLIENT_ID}&redirect_uri={MY_REDIRECT_URI}&scope=openid+name+email&response_mode=form_post

Please use percent-encoding (with spaces between list elements) and report back with the results of your authorization request:

https://appleid.apple.com/auth/authorize?response_type=code&state={STATE}&client_id={MY_CLIENT_ID}&redirect_uri={MY_REDIRECT_URI}&scope=openid%20name%20email&response_mode=form_post

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Sign in With Apple Problem on iOS
 
 
Q