使用 Apple ID 登录显示无效的 responseType
Sign in with Apple ID says invalid responseType
我需要在 Android 应用程序中实现使用 Apple 登录功能,所以我遵循了 instructions of the documentation。
这是我的参数:response_type=id_token&client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URI]&scope=email%20name&response_mode=form_post
但是 OAuth 页面显示 'invalid_request' 和描述:'Invalid responseType'。
他们说如果 response_type
可以是 id_token
那么 response_mode
应该是 form_post
所以我跟着他们。但是我不明白为什么我无法访问OAuth页面。
这是我用来访问 OAuth 页面的 uri:https://appleid.apple.com/auth/authorize?response_type=id_token&client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URI]&scope=email%20name&state=[STATE]&response_mode=form_post
当response_type
为code
时,我可以访问OAuth页面并成功登录。
我将 response_type
值 id_token
更改为 code id_token
,问题解决了。
我需要在 Android 应用程序中实现使用 Apple 登录功能,所以我遵循了 instructions of the documentation。
这是我的参数:response_type=id_token&client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URI]&scope=email%20name&response_mode=form_post
但是 OAuth 页面显示 'invalid_request' 和描述:'Invalid responseType'。
他们说如果 response_type
可以是 id_token
那么 response_mode
应该是 form_post
所以我跟着他们。但是我不明白为什么我无法访问OAuth页面。
这是我用来访问 OAuth 页面的 uri:https://appleid.apple.com/auth/authorize?response_type=id_token&client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URI]&scope=email%20name&state=[STATE]&response_mode=form_post
当response_type
为code
时,我可以访问OAuth页面并成功登录。
我将 response_type
值 id_token
更改为 code id_token
,问题解决了。