I installed Outline and I am not able to log in. In the settings page I have a user and password. When I go to the outline page, I get an OIDC login page. If I use the username and password I have on the settings page, it tells me they are wrong. If I click on “OIDC server” it takes me to a page where I can create a client. Clicking on create client takes me to a Django admin login page but the username and password still don’t work there. So, I am not sure how I can log in to Outline. Thanks.
Hello! I can’t seem to reproduce your problem in my instance. Is there a chance you set the username/password after installing the app? If that’s the case you should probably set the values you want, reset the app and try again.
If the problem persists, it would be useful if you also provided the app logs. In the meantime, I’ll try to reproduce on a new install. Sorry for the inconvenience!
Edit: Have you set an external domain for Outline? If I remember correctly, you must expose it for authentication work.
I do have an external domain.
I tried resetting the application, but that did not help. I will try to share the app logs once I can make sure it does not include any sensitive information.
One thing that might help is if you know of a way to get to the django command line, this way I can make sure I set the password to something that will work.
Thanks for the great work.
That’s very unusual. Anyway, you can access the Django command line like this:
- Open a terminal session on your server (with SSH or whatever you use) and run
docker exec -it outline-oidc sh
- In the new shell you can run Django commands with
python manage.py <YOUR_COMMAND>
- Once you’re done, you can run
exit
or pressCtrl-D
to exit the shell
I’d recommend running echo "$DJANGO_SUPERUSER_PASSWORD"
in the container to check that it is set and equal to the value you set in the UI. I’ll be waiting for your feedback!
Thank you so much. That helped. It turns out the issue was my password had “$” in it, the $DJANGO_SUPERUSER_PASSWORD was cut at that $ symbol. Changing the password to not contain $ and resetting the app fixes that first problem, but now when I try to log in I get another error: “Authentication failed - we were unable to sign you in at this time. Please try again.”
To close the loop on this, I had the dns for my domain set up with a wildcard *.example.com and outline was one of the subdomains. Once I added a DNS record for the outline subdomain by itself everything worked fine.