You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users should be able to log into my app with their Apple ID while, I have the 'name' and the 'email' of the user who logged in.
Actual behavior
Now it goes to the apple ID requesting authorization and Apple after signing in, redirects to the callback URL in a POST Callback request with Code and id_token in the body which should be handled by the AppleStrategy code, but it insteads returns a 201 Created response with the response message similar to the following.
The above message is displayed in the browser with a 201 status in response to Apple's Post Callback. I am not sure, which method of feathers is handling that and why is it returning that response while it should have inspected the id_token and extracted relevant information, for which I have implemented getEntityData and other methods.
Important Note: If I just request the "openid" scope and not "name" and "email" and remove the response_mode: "form_post", then Apple Returns a GET call which is handled by my code and it lets the user log in successfully. The problem occurs when I request "name" and "Email" and Apple sends a POST call on the callback URL. I am not sure if a POST callback is handled differently than the GET callback? If yes, can anyone please explain how a POST callback request is handled by Feathers authentication?
Feel free to ask any questions. Please answer if you have come across a similar issue. Looking forward to hear back soon.
System configuration
Feathersjs 5, Apple SSO.
NodeJS version:
v18.17.1 Operating System:
Windows
The text was updated successfully, but these errors were encountered:
Issue Description
I need to enable Apple SSO for my feathers.js app, so that user can log in using their Apple IDs.
I am following https://gist.github.com/rxb/e596c66b03e3262f26d9ede5d7dbab81 article for enabling Apple SSO in my application.
Following is how my configurations look.
Expected behavior
Users should be able to log into my app with their Apple ID while, I have the 'name' and the 'email' of the user who logged in.
Actual behavior
Now it goes to the apple ID requesting authorization and Apple after signing in, redirects to the callback URL in a
POST
Callback request withCode
andid_token
in the body which should be handled by theAppleStrategy
code, but it insteads returns a 201 Created response with the response message similar to the following.The above message is displayed in the browser with a 201 status in response to Apple's Post Callback. I am not sure, which method of feathers is handling that and why is it returning that response while it should have inspected the
id_token
and extracted relevant information, for which I have implementedgetEntityData
and other methods.Important Note: If I just request the "openid" scope and not "name" and "email" and remove the
response_mode: "form_post"
, then Apple Returns a GET call which is handled by my code and it lets the user log in successfully. The problem occurs when I request "name" and "Email" and Apple sends a POST call on the callback URL. I am not sure if a POST callback is handled differently than the GET callback? If yes, can anyone please explain how a POST callback request is handled by Feathers authentication?Feel free to ask any questions. Please answer if you have come across a similar issue. Looking forward to hear back soon.
System configuration
Feathersjs 5, Apple SSO.
NodeJS version:
v18.17.1
Operating System:
Windows
The text was updated successfully, but these errors were encountered: