Hi, anybody knows good tutorial for auth in ktor?
I found official documentation and samples too difficult to understand for a newbie like me.
Where should Credentials come from? What's the need for Principal and where is it stored?
I want to build a simple website with ability to register and login for user. I made a simple form and just store credentials in database and session in cookies, without any usage of Authentication plugin. I just check in needed endpoints, if there session stored, otherwise redirect to login.