Skip to content

feat(backend): Add OAuth Application endpoints to Backend API client #5599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 15, 2025

Conversation

tmilewski
Copy link
Member

Description

Adds the ability to perform CRUD operations on OAuth Applications to the Backend API client.

  import { createClerkClient } from '@clerk/backend';

  const clerkClient = createClerkClient(...);

  await clerkClient.oauthApplications.list({...});
  await clerkClient.oauthApplications.get('templateId');
  await clerkClient.oauthApplications.create({...});
  await clerkClient.oauthApplications.update({...});
  await clerkClient.oauthApplications.delete('templateId');
  await clerkClient.oauthApplications.rotateSecret('templateId');

Fixes ECO-587

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@tmilewski tmilewski self-assigned this Apr 11, 2025
Copy link

changeset-bot bot commented Apr 11, 2025

🦋 Changeset detected

Latest commit: 4addf40

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@clerk/backend Minor
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 10:24pm

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

packages/backend/src/api/endpoints/OauthApplicationsApi.ts:39

  • [nitpick] The class name 'OAuthApplicationsApi' uses a capitalized 'OAuth' whereas the file name and other resource references use 'Oauth'. Consider renaming for consistency.
export class OAuthApplicationsApi extends AbstractAPI {

Copy link
Member

@jacekradko jacekradko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to verify casing consistency

@tmilewski tmilewski changed the title feat(backend): Add OAuth Applications to Backend API client feat(backend): Add OAuth Application endpoints to Backend API client Apr 14, 2025
@tmilewski tmilewski merged commit bb35660 into main Apr 15, 2025
32 checks passed
@tmilewski tmilewski deleted the tm/eco-587-oauth-applications branch April 15, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants