kweb-core
kweb-core copied to clipboard
authentication
Hello everyone, is there an example with authentication?
@primaldevelop Apologies, I'm afraid not yet, as of right now you'll need to roll your own. If you're interested in tackling this let me know, I have some ideas about a good approach - and I think it should be doable as a plugin (although that might require that the plugin mechanism be improved a little).
Just researching, found this: https://auth0.com/
It looks great but unfortunately they charge about $0.01/user/month, which will be a dealbreaker for many.
According to Reddit this may be a good source of inspiration: http://www.passportjs.org/
I think you can use Ktor auth, and let the developer to use it with a simple DSL to configure the provider and routes to attach preconfgured auth.
Just want to keep this open for now.
Probably no one-size-fits-all solution to this so probably doesn't belong in kweb-core.