-
zig-oauth2
HTTP handler functions to allow you to easily add OAuth2 login support to your Zig application
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I am in the middle of implementing an OAuth 2 server for my internet forum [0]. The last 10 or so commits are OAuth related. I read docs for about a month and now I feel like I can code it. One thing that confuses me is how it can work without a client secret (it's recommended to not use a client secret for SPAs and native smart phone apps).
[0] https://github.com/ferg1e/comment-castles
https://github.com/nektro/zig-oauth2
For sure! There are some larger examples coming so that people can see it plugged into a more real-world application.
RE: onlogin, that method accepts a callback handler that is added to an internal/private array of callbacks to run once the `popup` or `redirect` sequence has finalized. It's the only externally-facing "doorway" into the OAuth flow. Everything else is inciting action (`popup()` and `redirect()`) or a read-out of the last-known payload (`last()`). It's actually very similar to a state manager I wrote a while back[1]. Callbacks are added via `$.on()` which assembles an internal `tree` map to be `dispatch`d once a change happens.
You've probably already seen the API docs for the btn.social SDK, but linking just in case[2]
[1]: https://github.com/lukeed/vegemite/blob/master/src/index.js
[2]: https://docs.btn.social/usage/#methods
Related posts
-
Trying to create an email client
-
Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui
-
SuprSend - Notification Service VS novu - a user suggested alternative
2 projects | 3 Feb 2024 -
Ask HN: Self Hosting an Email Server?
-
Proxy to add OAuth 2.0 authentication to email clients that don't support it