<@U04UQ68083H>I want to integrate Single Sign On a...
# ory-copilot
o
@chilly-king-10285I want to integrate Single Sign On are there any references using selfhosting
c
A message from kapa.ai
Yes, there are several references and guides available for integrating Single Sign-On (SSO) using self-hosting. For instance, you can integrate GitLab with Ory Hydra for SSO. This integration is done as configuration, without creating any code or monkey-patching any application. You can find the detailed guide [here](https://www.ory.sh/docs/hydra/self-hosted/gitlab). Additionally, you can add Ory OAuth2 as an OIDC provider to your Ory Network project for SSO. This setup involves creating an Ory Network project that serves as the SSO provider, manages user identities, and provides OAuth2/OIDC endpoints for authentication and authorization. Here is a snippet on how to create it using the CLI:
Copy code
bash ory create project --name "OAuth2 Server - Example Corp"   # Note down the project ID   export project_id=your-project-id # replace with your project ID      ory create oauth2-client --project "$project_id" \    --name "Example Corp" \    --grant-type authorization_code,refresh_token \    --response-type code \    --scope openid,offline_access,email \    --redirect-uri <https://your-project-slug.projects.oryapis.com/self-service/methods/oidc/callback/H1o_k--i> # replace with your redirect URI
You can find more details about this setup [here](https://www.ory.sh/docs/kratos/social-signin/ory). Remember, these are just examples and the actual implementation may vary based on your specific requirements and setup.