docs icon indicating copy to clipboard operation
docs copied to clipboard

Disable the default login

Open satendrakumar opened this issue 1 year ago • 5 comments

I integrated the OIDC with Open-webui using DeScope. It is working but the default login is still there. I used to ENV param ENABLE_LOGIN_FORM=false but does not help.

image

Here are all the params:

ENABLE_OAUTH_SIGNUP=true
ENABLE_LOGIN_FORM=false 
ENABLE_SIGNUP=false 
OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true

here is the docker command with OIDC:

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ~/.open-webui:/app/backend/data --name open-webui -e ENABLE_OAUTH_SIGNUP=true -e ENABLE_LOGIN_FORM=false -e ENABLE_SIGNUP=false -e OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true -e OAUTH_USERNAME_CLAIM=name  -e OAUTH_CLIENT_ID=XXXXXXXXXX -e OAUTH_CLIENT_SECRET=XXXXXXXXXXXXXXXXXX -e OPENID_PROVIDER_URL=https://api.descope.com/XXXXXXXXXXXXXX/.well-known/openid-configuration -e OAUTH_PROVIDER_NAME=DeScope  --restart always ghcr.io/open-webui/open-webui:main

I am try to disable the default login and auto redirect to OIDC. Any help would be much appreciated. Thank you.

satendrakumar avatar Aug 26 '24 08:08 satendrakumar

Just tried this out of curiosity on my own deployment that uses Microsoft OAuth and it doesn't work for me either.

queentrapwatchout avatar Aug 29 '24 11:08 queentrapwatchout

Any update on this ticket? I'm looking to productionalize a service and hoping to get rid of the glaring security issues from the start

This appears to be fixed in 0.4.8

This appears to be fixed in 0.4.8

Also worked for me in version 0.5.20 by setting the following environment variables:

ENABLE_LOGIN_FORM=false
ENABLE_SIGNUP=false

onlynow2 avatar Mar 24 '25 11:03 onlynow2

anyway to make is auto redirect to your oidc provider in my case authentic? so if your not logged in it immediately bounces you to the login instead of having you click the button?

johnweland avatar Apr 19 '25 17:04 johnweland