Creating a new Workspace results in "redirect_uri is not authorized" #55
-
I would like to have a couple of Fief workspaces in a quickstarted self hosted domain running in the single container. Certainly the solution is very simple, my only problem is that I can not find it :-) . So I am trying to run Fief in a custom local domain and port and everything seems ok regarding the main workspace. Problem arises when I try to create another workspace via the top-right hand side menu. That results in a "redirect_uri is not authorized". I can not use port 8000 in my host because it is being already used, so I tried to use port 8500 by means of docker run+env variables. Digging into the code, I found a few places where there are constant strings containing "localhost:8000" where, I think, should be I had some difficulty to grasp the difference between ROOT_DOMAIN and FIEF_DOMAIN, it seems to me that a few more lines in the docs on how to quickstart dockerized Fief in a self hosted domain would help a lot. Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @plpsanchez 👋 Welcome to Fief! Could you give me the value you're using for Basically, the difference between
The main Fief workspace controls the access to the admin dashboard of all your workspaces. When you create a new workspace, a redirect URI is added to the default client of the main Fief workspace. If everything goes well, you should have a new redirect URI added to this client which should look like: |
Beta Was this translation helpful? Give feedback.
Hello @plpsanchez 👋 Welcome to Fief!
Could you give me the value you're using for
PORT
,ROOT_DOMAIN
andFIEF_DOMAIN
?Basically, the difference between
ROOT_DOMAIN
andFIEF_DOMAIN
is the following:ROOT_DOMAIN
is the root domain (no subdomain) of all your workspaces. For example, it'sfief.dev
for the cloud version. In local self-hosting the default islocalhost:8000
. It'll be used to generate other workspaces subdomains, e.g.,example.fief.dev
orexample.localhost:8000
.FIEF_DOMAIN
is the domain of your main Fief workspace. For example, it'sfief.fief.dev
for the cloud version. In local self-hosting, the default islocalhost:8000
.The main Fief workspace controls the access to the admin…