datamade / how-to

📚 Doing all sorts of things, the DataMade way
MIT License
81 stars 12 forks source link

Severless worker for Oauth2 #268

Closed fgregg closed 8 months ago

fgregg commented 2 years ago

At some point, we might want to have a blessed way to do serverless code for the last leg of Oauth2 "authorization_code" flow.

Here's an example of what that code could look like, from a cloudflare example.

https://gist.github.com/fgregg/ab710f5b78ad1400b7763d8508c8b0bb

smcalilly commented 8 months ago

We should remember this next time it comes up, in which case we'll have more experience that would help us write about this.