lexman / tuttle

Make for data
MIT License
20 stars 3 forks source link

Authentication system #29

Closed lexman closed 6 years ago

lexman commented 8 years ago

Implementing a resource in tuttle requires to write a remove method that needs write access to the resource. In order to avoid setting passord password in the url (eg ftp://user:password@myserver.com/my_resource), we could define distinct configuration file to set passwords to resources. Filed could be structured as a list of lines structured like this :

url_regex    user   passord

eg :

^ftp://ftp.myserver.com/~myuser/.*                     my_ftp_user     my_ftp_passord
^http://www.myserver.com/.*                              my_http_user    my_http_passord
^pg://postgresql.a_pg_server/my_db/a_table    pg_user            pg_password

This is necessary for implementing standard resources

lexman commented 6 years ago

Done in v0.6