Skip to content

feat(backend): Introduce Machine-to-machine Auth#4571

Closed
jakobevangelista wants to merge 2 commits intomainfrom
jakob/m2m
Closed

feat(backend): Introduce Machine-to-machine Auth#4571
jakobevangelista wants to merge 2 commits intomainfrom
jakob/m2m

Conversation

@jakobevangelista
Copy link

@jakobevangelista jakobevangelista commented Nov 15, 2024

Description:

This PR introduces support for Machine-to-Machine (M2M) authentication in the SDK by adding the function to call the /machine_tokens endpoint via backend SDK.

The implementation aligns with the backend API changes and enables developers to generate machine tokens for M2M scenarios.

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:

@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2024

🦋 Changeset detected

Latest commit: e46c859

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

This PR includes changesets to release 10 packages
Name Type
@clerk/backend Minor
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
@clerk/tanstack-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

@vercel
Copy link

vercel bot commented Dec 6, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ⬜️ Skipped (Inspect) Dec 7, 2024 1:09am

@jakobevangelista jakobevangelista marked this pull request as ready for review December 9, 2024 20:24
@jakobevangelista jakobevangelista changed the title [WIP] feat(backend): Introduce Machine-to-machine Auth feat(backend): Introduce Machine-to-machine Auth Dec 10, 2024
clients: new ClientAPI(request),
emailAddresses: new EmailAddressAPI(request),
invitations: new InvitationAPI(request),
__internal_machineTokens: new MachineTokensAPI(request),
Copy link
Contributor

Choose a reason for hiding this comment

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

Disclaimer, I am not familiar with this codebase

Why is this __internal_machineTokens?

Copy link
Author

Choose a reason for hiding this comment

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

It's internal until we release it GA

@jakobevangelista
Copy link
Author

closed to consolidate to #4875

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