code: def require_login(self, view_func):
          
          @wraps(view_func)
          def decorated(*args, **kwargs):
              if g.oidc_id_token is None:
                  return self.redirect_to_auth_server(request.url)
              return view_func(*args, **kwargs)
          return decorated
docs: Use this to decorate view functions that require a user to be logged
          in. If the user is not already logged in, they will be sent to the
          Provider to log in, after which they will be returned.
  
          .. versionadded:: 1.0
             This was :func:`check` before.