I'm really new to web development and I'm stuck trying to implement a simple HTTP auth in a project using actix-web. My needs are following:
I don't want/need any databases for the auth. It's enough for me to access the username and pass from enviroment variables, which will be provided when the docker container is run.
I just need authentication for the
/api/*routes. All the other routes should stay public.Ideally, it should be done using basic HTTP auth and stored in session.
I tried to use the actix_web_httpauth crate but I couldn't find enough documentation to implement in for my usecase.
Again, this is probably an easy thing to do, but I'm not at all familiar with web development. Any help is appreciated.