<@U04UQ68083H> while developing custom ui for ory,...
# ory-copilot
c
@chilly-king-10285 while developing custom ui for ory, will we be able to get the client id to determine if we want to change ui theme ?
b
A message from kapa.ai
The knowledge sources do not explicitly mention that the OAuth2 client ID is made available to the custom UI during self-service flows (such as login or registration) in Ory. The documentation describes how to build custom UIs using Ory's APIs and SDKs, and how Ory Elements can be used to map flow data to UI components, but it does not state that the client ID is included in the flow data sent to the frontend or that it can be used to dynamically change the UI theme based on the client ID. If your use case requires theming the UI based on the OAuth2 client initiating the flow, you may need to implement additional logic on your backend or in your OAuth2 client integration to pass this information to your frontend. However, this approach is not described in the official documentation or examples provided by Ory. In summary, based on the available documentation, there is no clear support for accessing the client ID in the custom UI for theming purposes. If this is a critical requirement, you may want to reach out to the Ory team or community for further guidance or feature requests. References: - [Custom UI Overview](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-overview) - [Custom UI Examples](https://www.ory.sh/docs/getting-started/custom-ui) - [Ory Elements Integration](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-ory-elements)