diff --git a/examples/service-whoami-flask/whoami-flask.py b/examples/service-whoami-flask/whoami-flask.py index 2e08391bef..e97528c35b 100644 --- a/examples/service-whoami-flask/whoami-flask.py +++ b/examples/service-whoami-flask/whoami-flask.py @@ -56,14 +56,14 @@ def whoami(user): def oauth_callback(): code = request.args.get('code', None) if code is None: - return 403 + return "Forbidden", 403 # validate state field arg_state = request.args.get('state', None) cookie_state = request.cookies.get(auth.state_cookie_name) if arg_state is None or arg_state != cookie_state: # state doesn't match - return 403 + return "Forbidden", 403 token = auth.token_for_code(code) # store token in session cookie