icenet-ai / icenet-application

MIT License
0 stars 1 forks source link

Basic authentication #6

Closed JimCircadian closed 1 year ago

JimCircadian commented 1 year ago

Implementing a basic authentication scheme

JimCircadian commented 1 year ago

Generating little JSON file for loading in dynamic users for differing environments:

>>> user_list = dict(
...     an_account = secrets.token_urlsafe(8))
>>> with open("auth_list.json", "w") as fh:
...     fh.write(json.dumps(user_list))