polite-continent-45297
03/14/2023, 8:10 AMproud-plumber-24205
03/14/2023, 11:18 AM/login and /consent paths of the UI?
The UI doesn't need to be protected since it is used to get a session after successful login.
The only thing that should be secured is the Hydra admin api which you call from the backend after the user has "accepted" or "denied" a consent.
Please see this document https://www.ory.sh/docs/oauth2-oidc/custom-login-consent/flow
In Ory Network this will require your login and consent UI to call hydra using an API key from the server and not the browserpolite-continent-45297
03/14/2023, 12:44 PMpolite-continent-45297
03/14/2023, 1:05 PMproud-plumber-24205
03/14/2023, 1:08 PMpolite-continent-45297
03/14/2023, 1:09 PMpolite-continent-45297
03/14/2023, 1:09 PMpolite-continent-45297
03/14/2023, 1:09 PM<https://stoic-rhodes-da9n7ls10h.projects.oryapis.com/oauth2/auth?client_id=606d01f7-00d0-4817-ae8b-9086735fe929&consent_verifier=8a7681aa666a4e8d8b39d52d2b8ef85f&nonce=jItwNfIdJafs884Tbq6GHXCgL08mqddb-G2DbfgV4kw&redirect_uri=http%3A%2F%2F127.0.0.1%3A8000%2Flogin%2Foauth2%2Fcode%2Fmessaging-client-oidc&response_type=code&scope=openid&state=E7hBP6cfs45GVHhOYfxm5mSkyRBp0UADEUjErY2_qAQ%3D|https://stoic-rhodes-da9n7ls10h.projects.oryapis.com/oauth2/auth?client_id=606d01f7-00d0-4817-ae8b-[…]E7hBP6cfs45GVHhOYfxm5mSkyRBp0UADEUjErY2_qAQ%3D>