Better HN
topnewbestaskshowjobs
Log inSign up

cmackenzie1

37 karma · joined Aug 5, 2019 (7y ago) · 9 submissions

Submissions

1.

Building a better Dependabot with AI agents(cdm.dev ↗)

1 points · by cmackenzie1 · 6d ago · discuss

2.

Epoch Countdown(epochcountdown.org ↗)

3 points · by cmackenzie1 · 1y ago · discuss

comment 1y ago · link · parent

If the library wasn't open for extension, an enum could work. With the currently model, users can write their own plugins, bring their own storage provider, or even write an email consumer that reacts to events from the EventBus - all without needing to upstream their changes to torii and torii-core.

comment 1y ago · link · parent

If you are looking to add another provider, one can do so here: https://github.com/cmackenzie1/torii-rs/tree/main/torii-auth...

If you want change the plugin logic completely, you can implement the Plugin trait and register the plugin with the plugin manager: https://github.com/cmackenzie1/torii-rs/blob/main/torii-core...

Doing the latter, you can also bring your own storage provider.

comment 1y ago · link · parent

I’ve gone back and forth on using TypeId or named plugins using a string. Mainly switched to the named variant to support each oauth provider lookup by name.

If you have any suggestions for making it better, let me know!

comment 1y ago · link · parent

JavaScript definitely has a few such OpenAuthJS, Better-Auth, and Next-Auth.

PHP Laravel, Ruby on Rails, Python Django, Elixir Phoenix all have some ways of doing this, but are usually baked into the framework.

Others usually end up as a standalone service like Keycloak, Authelia and more.

7.

Show HN: Torii – a framework agnostic authentication library for Rust(github.com ↗)

80 points · by cmackenzie1 · 1y ago · 38 comments

8.

Collection of Tech New Grad Roles for 2020 Start(github.com ↗)

1 points · by cmackenzie1 · 7y ago · discuss