code: def configure_basic_auth_decorator(graph):
      
      # use the metadata name if no realm is defined
      graph.config.setdefault("BASIC_AUTH_REALM", graph.metadata.name)
      return ConfigBasicAuth(
          app=graph.flask,
          # wrap in dict to allow lists of items as well as dictionaries
          credentials=dict(graph.config.basic_auth.credentials),
      )
docs: Configure a basic auth decorator.