oauth/oauth.py
changeset 58 c56ca9e06cc8
parent 40 10a829681179
equal deleted inserted replaced
57:590bf2969451 58:c56ca9e06cc8
   242     else:
   242     else:
   243         validate_errors = "1"
   243         validate_errors = "1"
   244         error_description = "token not found in db?"
   244         error_description = "token not found in db?"
   245     return jsonify(
   245     return jsonify(
   246         access_token=token,
   246         access_token=token,
   247         redirect_uri= uris, 
   247         uriredirect= uris, 
   248         errors=validate_errors,
   248         error=validate_errors,
   249         description= error_description,
   249         description= error_description,
   250         scope=scopes
   250         scope=scopes
   251     )
   251     )
   252 
   252 
   253 @app.route('/ws/resource/', methods=["POST", "PUT"])
   253 @app.route('/ws/resource/', methods=["POST", "PUT"])