Comments (8)
While worktop is still "young" I'd say go with whatever works for your use case right now, but make it easy to extend. I just set some defaults based on what I needed, but allowed everything to be passed as parameters. I'm looking forward to giving this framework a go!
from worktop.
Thanks @mattwebbio! Yeah, there will definitely be a worktop/jwt
. Still working through the knowledge gap of importKey
so that I'm not setting everyone up for limited use cases.
from worktop.
I looked into this a while back and created jwebt so that I could send logs from Cloudflare Workers to GCP logging (with the help of jwebt-gcp). I used "pkcs8" rather than "raw". I'm not sure what the norm would be, and it's been almost a year since I worked on it, but at the time I didn't find a lot of information about best practices.
from worktop.
Thanks! Yeah the next building block here is a worktop/jwt
module, which I have ready to go, but again – not sure if the patterns/choices I made were specific to me.
Your links are helpful, but I think you and I are in the same position, wondering if/when different key-types are preferred.
from worktop.
Let me know how it fares for you!
It's young, but I still want to avoid breaking changes as much as possible. I have 3-5 new modules' worth of code I can add but I'm shopping around for feedback before adding anything. I don't think it'd be a nice early-adopter experience to be trying something new & having to rework parts of your application on every new release.
from worktop.
Super excited about this project! Thought I'd cast my vote since it doesn't look like you've gotten much feedback here.
I'm planning to verify and decode JWT keys created/signed from an external application with an x509 public cert. Currently accomplishing this (outside worktop) with jsrsasign. Your suggested additions in the first comment look great!
from worktop.
Would wrapping something like node-jose make more sense now that Cloudflare Workers (partially) supports node modules? Or is your intention to keep dependencies to an absolute minimum at this point?
https://blog.cloudflare.com/node-js-support-cloudflare-workers/
https://workers.cloudflare.com/works
from worktop.
I already have the code for this, and I'd 1000% rather use native APIs already available within the runtime. The entire framework is a pure Workers target. Relying on Node.js shims is a forced dependency on extensive tooling (eg, webpack or an involved, custom shim setup) and/or reliance on a platform feature which isn't fully formed yet.
from worktop.
Related Issues (20)
- Using Worktop in a Pages website HOT 3
- Use Sveltekit and worktop together? HOT 2
- How to set multiple cookies? HOT 2
- Worktop Middlewares Example HOT 4
- Durable Objects example HOT 2
- The example of timing requests might be misleading HOT 1
- Using official Cloudflare types HOT 4
- Can I use Worktop with Fastly Compute@Edge? HOT 1
- Is it going to be official by cloudflare?
- Cache API and KV: Concerns/Questions/Usage HOT 1
- How to access `.env` with Wrangler 2 HOT 2
- Provide a "test" module HOT 4
- Serving HTML files HOT 6
- How to use with cron / scheduled event ? HOT 2
- Is `worktop@next` safe to use in production? HOT 2
- Add generic typing for Router.add handler
- The uploaded script has no registered event handlers. [API code: 10068] HOT 1
- Add sub-routers HOT 2
- Node 16+ ESM TypeScript error HOT 1
- `isCacheable` allowed cache by default if the `cache-control` header is empty may leading to a security flaw in ssg content HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from worktop.