added authentication API

This commit is contained in:
Tobias Kurze
2019-03-19 16:34:05 +01:00
parent 9d9c58d268
commit bef3c6dc9b
5 changed files with 72 additions and 9 deletions

View File

@@ -11,17 +11,18 @@ jwt_auth = HTTPTokenAuth()
basic_auth = HTTPBasicAuth()
multi_auth = MultiAuth(basic_auth, jwt_auth)
from .serve_frontend import fe_bp
from .api import api_bp
app = Flask(__name__)
app.config.from_object('backend.config.Config')
db = SQLAlchemy(app)
from .serve_frontend import fe_bp
from .api import auth_api_bp, api_bp
from backend.auth import oidc_auth
oidc_auth.init_app(app)
app.register_blueprint(auth_api_bp)
app.register_blueprint(api_bp)
app.register_blueprint(fe_bp)
db = SQLAlchemy(app)