code: def authorized(route):
      
      @wraps(route)
      def authorized_route(*args, **kwargs):
          if 'mwoauth_access_token' in flask.session:
              return route(*args, **kwargs)
          else:
              return flask.redirect(
                  flask.url_for('mwoauth.mwoauth_initiate') +
                  "?next=" + flask.request.endpoint)
  
      return authorized_route
docs: Wrap a flask route. Ensure that the user has authorized via OAuth or
      redirect the user to the authorization endpoint with a delayed redirect
      back to the originating endpoint.