Skip to content

workspace get_by_domain isn't compatible with docker-compose networking #250

Answered by frankie567
dearlordylord asked this question in Q&A
Discussion options

You must be logged in to vote

they were really all right to share and I was aware, but all right.

It's a bot, so not very clever ya know 🙃


Regarding your issue, it's expected that Fief is not able to recognize your workspace with the internal hostname fief:8000: it's only able to recognize the one that sets in its configuration.

Now, the good thing is that it relies on the Host header to determine the workspace. So, with curl, it's quite easy to manually set it:

        curl \
        -X GET \
        -H "Authorization: Bearer ${FIEF_API_KEY}" \
        -H "Host: localhost:8000" \
        http://fief:8000/admin/api/users/ && echo "\n"

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dearlordylord
Comment options

Answer selected by dearlordylord
Comment options

You must be logged in to vote
1 reply
@frankie567
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #249 on August 08, 2023 09:06.