Skip to content

Commit

Permalink
OAuth - Register Github BP
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Sep 16, 2022
1 parent b591517 commit 8bb8d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/__init__.py
Expand Up @@ -34,11 +34,15 @@ def initialize_database():
def shutdown_session(exception=None):
db.session.remove()

from apps.authentication.oauth import github_blueprint

def create_app(config):
app = Flask(__name__)
app.config.from_object(config)
register_extensions(app)
register_blueprints(app)

app.register_blueprint(github_blueprint, url_prefix="/login")

configure_database(app)
return app

0 comments on commit 8bb8d61

Please sign in to comment.