Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Auth #100

Open
Naurislv opened this issue Sep 15, 2024 · 1 comment
Open

API Auth #100

Naurislv opened this issue Sep 15, 2024 · 1 comment

Comments

@Naurislv
Copy link

I am calling the API from my local computer and it obviously is not getting through the login window. How should one access the API outside of Swagger UI https://XXX.proxy.runpod.net/ai-dock/api/docs?

curl -X 'POST'
'https://XXX.proxy.runpod.net/ai-dock/api/payload'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"input": {
"handler": "RawWorkflow",
"s3": {
"access_key_id": "your-s3-access-key",
"secret_access_key": "your-s3-secret-access-key",
"endpoint_url": "https://my-endpoint.backblaze.com",
"bucket_name": "your-bucket"
},
"webhook": {
"webhook_url": "your-webhook-url",
"webhook_extra_params": {}
},
"modifiers": {},
"workflow_json": {
...
}
}'

@robballantyne
Copy link
Member

You'll need to pass header Authorization: Bearer $WEB_TOKEN.

Alternatively, and maybe preferably, create a SSH tunnel and forward port 18188 - All services are proxied, with the proxy handling Auth. The ComfyUI service is actually bound to localhost 10,000 ports higher than the exposed port without auth so it's very flexible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants