Skip to main content

Create an oauth2 client in ory

This guide shows you how to register an OAuth2 client in your Ory project.

  1. Log in to your Ory Console
  2. Select your workspace and project from the dropdown menus at the top
  3. Click on OAuth2 in the main navigation menu
  4. In the OAuth2 page, select on the OAuth2 Clients tab
  5. Click the Create OAuth2 Client button
  6. In the client type selection screen, select Custom
    • This option gives you full control over all OAuth2 client settings
https://console.ory.sh/projects/<project-id>/oauth/create

Create OAuth2 Client

  1. Fill in the client details:

    • Client Name: A name for your client
    • Redirect URIs: The URLs to which Ory will redirect users after authentication (e.g., http://localhost:3000/callback)
    • Scopes: The permissions your client will request (recommended: openid, email, and profile)
    • Grant Types: Select authorization_code and refresh_token
    • Response Types: Select Authorization code (code)
    • You can leave the rest of the settings as default for now.
  2. Copy the Client ID and Client Secret generated for your client. You will need these values to configure your application.

note

Ensure you save before leaving the page. You can always come back to this page to view or edit your client settings.