Giter Club home page Giter Club logo

Comments (4)

jervenclark avatar jervenclark commented on June 22, 2024 1

Thanks for the response and I'm sorry for being unclear. This is the basic auth that I mean not the one implemented by comfy UI.
Is there a way to pass headers when loading the comfy server? Maybe something similar to this?

load(https://localhost:8188, headers={'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='})

from comfyscript.

Chaoses-Ib avatar Chaoses-Ib commented on June 22, 2024

As far as I know, the official ComfyUI server doesn't have any auth mechanism. Can you give an example of the basic auth you mentioned?

from comfyscript.

Chaoses-Ib avatar Chaoses-Ib commented on June 22, 2024

v0.4.4 is released. Now you can do it like this:

import aiohttp

load(Client('http://127.0.0.1:8188/', session_factory=lambda: aiohttp.ClientSession(
    auth=aiohttp.BasicAuth('Aladdin', 'open sesame')
    # auth=aiohttp.BasicAuth.decode('Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==')
    # headers={'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='}
)))

See ClientSession for more options.

from comfyscript.

jervenclark avatar jervenclark commented on June 22, 2024

Thank you! I will try this one.

from comfyscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.