>> My requirement is not just limited to web pages, I am in search for
authentication module which should be easy to setup and use for my python
projects (web, api, tui, etc)

The easiest/simplest authentication for web and api is HTTP Basic auth. You
can do something like this https://stackoverflow.com/a/7000784. You don't
need an external module. Note, if you are not using HTTPS the
username/password can be sniffed as it travels through the network.

For TUI, the simplest is getting username/password from stdin and checking
against internally stored credentials. You can use db or file to store the
credentials. If you want to authenticate against system username/password
then you can use PAM(e.g., https://pypi.org/project/python-pam/).

Thanks,
Sivachandran P.

> _______________________________________________
> Chennaipy mailing list
> Chennaipy@python.org
> https://mail.python.org/mailman/listinfo/chennaipy
>
_______________________________________________
Chennaipy mailing list
Chennaipy@python.org
https://mail.python.org/mailman/listinfo/chennaipy

Reply via email to