This message was deleted.
# general
m
This message was deleted.
p
Hi @victorious-forest-92434 Please take a look at this document, which guides you through setting up a Custom UI. https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-overview To understand how this work, I would recommend you start with the Account Experience which already maps all the OIDC providers from your project to the registration and login pages. I can give you a brief summary: You need to add a social sign in provider to your Ory project, then initialize a
login
or
registration
flow which will redirect you to your PHP rendered login/registration page with a
flow
id. Use this flow id in your PHP application to get a JSON payload containing all the UI nodes. Map the UI nodes to the page (this will include your OIDC providers). Allow the user to submit the form with the oidc provider directly to Ory (the
action
url). Ory will then redirect the user to the provider page, after successful login the user is redirected back to Ory which issues a session, and then redirects back to your application.
You can also take a look at these examples: https://www.ory.sh/docs/getting-started/overview#customui We unfortunately don't have a complete PHP guide
v
Hi Alano, thanks for the help. I will tr it like you described 👍
Hi Alano, me again 🙂 I am looking into the links you send me and I am wondering if I can also use the callback route setting in the oauth2 php library I am using. Currently I can redirect the user to the ory network default login experience by generating the URI with my cient app credentials. But when the user logs in, they are not redirected back to my apps /callback URI. Did I miss a setting for this somewhere or is this the wrong way to do it and I should use the "flow" method you described? 🤔
p
Hi @victorious-forest-92434 Have you set up the redirect uri on the client? https://www.ory.sh/docs/hydra/guides/custom-ui-oauth2#create-oauth2-client-in-ory-network
v
Yes, I have added the redirect callback URL via the dashboard UI. But it seems to redirect me to the login page instead now..