Skip to content
Snippets Groups Projects
Verified Commit 7503c134 authored by Mark's avatar Mark
Browse files

Refactor

parent ead93896
No related branches found
No related tags found
1 merge request!34Resolve "Replace Flask-oauth with oauthlib in test/login_logout"
Pipeline #4699 passed with stages
in 3 minutes and 17 seconds
......@@ -57,16 +57,15 @@ def logout():
return redirect("/")
@oauth_authorized.connect
def redirect_to_next_url(blueprint, token):
def save_token(blueprint, token):
# set OAuth token in the token storage backend
blueprint.token = token
@oauth_error.connect
def asdasd(blueprint, **error):
# set OAuth token in the token storage backend
def save_error(blueprint, **error):
# set error in the token storage backend
blueprint.error = error
if __name__ == "__main__":
app.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment