plain-megabyte-75926
09/10/2025, 7:12 AMchilly-king-10285
09/10/2025, 7:12 AMchilly-king-10285
09/10/2025, 7:12 AMoidc
for OIDC providers) in your Kratos configuration. The login UI will then present a "Sign in with SSO" button when appropriate (e.g., based on the user's email domain for B2B SSO) [Login methods](https://www.ory.sh/docs/kratos/self-service/flows/user-login) [See it live](https://www.ory.sh/docs/kratos/organizations#see-it-live). 3. Configuration: You can configure SSO providers through the Ory Console or CLI. For OIDC, you need to provide the client ID, client secret, and issuer URL. For SAML, the onboarding portal can be used for easier setup. You can also customize OAuth scopes and data mapping to control what user data is imported [Connecting a project to the SSO provider](https://www.ory.sh/docs/kratos/social-signin/ory#connecting-a-project-to-the-sso-provider). 4. UI and User Experience: The login flow for browser clients relies on HTTP redirects between Ory, your login UI, and the user's browser. You can use Ory's default UI or bring your own custom UI. The UI should be hosted on the same top-level domain as Ory to avoid issues with cookies [Initialize login flow](https://www.ory.sh/docs/kratos/self-service/flows/user-login#initialize-login-flow) [Custom UI integration](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-basic-integration). 5. Security Considerations: - Ensure your application and Ory are on the same top-level domain for cookie/session management. - Use browser flows (not API flows) for browser-based apps to avoid CSRF and other security issues. - Ory manages session cookies and CSRF tokens for browser security [Local development](https://www.ory.sh/docs/getting-started/local-development#local-development) [Self-service flows](https://www.ory.sh/docs/kratos/self-service#performing-login-registration-settings--flows). 6. B2B/Enterprise SSO: If you need to support organizational logins (B2B), Ory Kratos offers features to group users by organization and enable SSO per organization, including self-service onboarding for IT admins [Onboarding portal](https://www.ory.sh/docs/kratos/organizations#onboarding-portal). Summary: Switching to SSO with Ory Kratos for browser logins is well-supported, but you should plan for provider configuration, UI integration, domain/cookie management, and security best practices. For enterprise/B2B use cases, consider leveraging the onboarding portal for streamlined IdP integration. If you have specific requirements (e.g., SAML vs. OIDC, multi-tenancy, custom UI), these may influence your setup and plan selection. If you need more details on a particular SSO scenario, please specify!plain-megabyte-75926
09/10/2025, 7:15 AMchilly-king-10285
09/10/2025, 7:15 AMchilly-king-10285
09/10/2025, 7:15 AMplain-megabyte-75926
09/10/2025, 7:19 AMchilly-king-10285
09/10/2025, 7:19 AMchilly-king-10285
09/10/2025, 7:19 AMplain-megabyte-75926
09/10/2025, 7:28 AMchilly-king-10285
09/10/2025, 7:28 AMchilly-king-10285
09/10/2025, 7:28 AM