A simple login service intentended to be used within a docker container or private network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
simple_auth_service/simple_auth_service.py

19 lines
387 B

#!/usr/bin/env python3
from flask import *
import secrets
import nonce
import os.path
app = Flask(__name__)
app.secret_key = secrets.token_urlsafe()
app.register_blueprint(nonce.app)
ROUTES = {'routes': ['/', '/nonce'] }
@app.route('/')
def home():
return jsonify(ROUTES)
nonce.loadUsers( os.path.join('data','userlist.json') )
if __name__ == '__main__':
app.run( port=7070)