-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local test deployment unable to get token #149
Comments
Thanks! One of the things which need to be polished for the 1.0.0. Leaving this open so that it can be fixed more thoroughly, in code and/or in docs. |
Addendum: This behavior is not reproducible under Docker for Windows. I am on Ubuntu 18.10:
|
Aha! Yes, when you're saying it, I actually checked on macOS that the Running things on Linux locally (and apparently also locally dockerized) are a little different from the other operating systems; if you run into more of these issues (rights for example), feel free to open additional issues. |
I think I have found one issue here which I will fix, partly using the |
I will adapt the Beta tutorial to the new
Then wicked should run locally on http://localhost:3000. For the impatient, use If you have a configuration from a previous (beta) version of wicked, you should be able to use that configuration instead of creating a new one. The main use case of this is to be able to locally use the Authorization Server and Kong as a Gateway. To map services to the locally running machine, specify Hope this helps, and if you find anything else, feel free to add new issues. Closing this for now. |
I've followed the BETA-setup with the tags WICKED_1_0 and 1.0.0.beta11 and in local data-container-mode for the api repository.
Reproduce
docker-compose up -d
Expected: The normal wicked API portal welcome-page
Actual: An error page showing:
{"error_description":"The access token is invalid or has expired","error":"invalid_token"}'
Same happens when trying to access the "applications" or the "APIs" menu point.
Cause
The
portal-auth
container is unable to get an IP for theapi.portal.local
dns entry, as shown in the logs:The ip has been added to the docker hosts
/etc/hosts
file, but that file is ignored from the dns resolver inside the docker containers.Solution
Change the resulting
docker-compose.yml
to contain the extra_hosts field:Replace the ip with the same ip you added to your docker hosts
/etc/hosts
file.The text was updated successfully, but these errors were encountered: