cold-scientist-93808
08/06/2024, 7:36 AMchilly-king-10285
08/06/2024, 7:36 AMchilly-king-10285
08/06/2024, 7:37 AMbash 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
After setting up the OAuth2 provider, you can connect apps and other projects to it. OAuth2-enabled apps can sign in users via the SSO provider using the OAuth2 authorization code flow straight away. For more detailed information, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/social-signin/ory).magnificent-energy-493