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
If you have now configured everything correctly, you will land at Apple, can log in there and will be redirected back to the specified redirect_uri.
Here you will receive a CSRF-Violation error!
According to the documentation, this is probably due to the generated provider ID:
“The provider ID for the web browser flow must be apple. This makes sure that the resulting callback URL will be exempt from CSRF middleware, as Apple uses a POST form request that does not include the CSRF cookie.”
The part of the redirect_uri “apple-a12b-cDe” is also used as the provider ID in the HTML form.
A hard overwrite of the provider ID in the HTML form only triggers a 404 error from Kratos.
Preflight checklist
Ory Network Project
No response
Describe the bug
If you configure Apple as a social sign-in provider in Ory Network, you will receive a fixed domain as redirect_uri that looks something like this:
https://<KRATOS_DOMAIN>/self-service/methods/oidc/callback/apple-a12b-cDe
If you have now configured everything correctly, you will land at Apple, can log in there and will be redirected back to the specified redirect_uri.
Here you will receive a CSRF-Violation error!
According to the documentation, this is probably due to the generated provider ID:
“The provider ID for the web browser flow must be apple. This makes sure that the resulting callback URL will be exempt from CSRF middleware, as Apple uses a POST form request that does not include the CSRF cookie.”
The part of the redirect_uri “apple-a12b-cDe” is also used as the provider ID in the HTML form.
A hard overwrite of the provider ID in the HTML form only triggers a 404 error from Kratos.
Reproducing the bug
Relevant log output
Relevant configuration
Version
Ory Network and Custom UI with @ory/[email protected]
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
No response
The text was updated successfully, but these errors were encountered: