Auto-Photoshop-StableDiffusion-Plugin icon indicating copy to clipboard operation
Auto-Photoshop-StableDiffusion-Plugin copied to clipboard

--api-auth,ps plug-in where to enter the user name and password?

Open XiaoCC opened this issue 1 year ago • 4 comments

Remote computer installation (stable diffusion) frp mapping port 7777, how to fill in the local computer ps plug-in (sd url), remote computer enabled (--api-auth) need to enter the api call user name and password, ps plug-in where to enter the user name and password?

XiaoCC avatar May 22 '23 00:05 XiaoCC

Authentication is currently unavailable. However, if a developer is interested in working on this feature, I will gladly merge their contribution.

AbdullahAlfaraj avatar May 22 '23 04:05 AbdullahAlfaraj

+1, need it badly.

holymode avatar May 25 '23 20:05 holymode

I encountered the same problem, but I managed to achieve remote calling by turning off permission verification. in stableDiffusion/modules/api/api.py line 217 def auth(self, credentials: HTTPBasicCredentials = Depends(HTTPBasic())): if credentials.username in self.credentials: if compare_digest(credentials.password, self.credentials[credentials.username]): return True raise HTTPException(status_code=401, detail="Incorrect username or password", headers={"WWW-Authenticate": "Basic"})

The above code is changed to def auth(self): return True

chenval avatar Jun 13 '23 03:06 chenval

+1, need it badly.

DreamCtrl avatar Sep 01 '23 06:09 DreamCtrl