-
Notifications
You must be signed in to change notification settings - Fork 115
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
Verify endpoint not working in latest update (requires port 4000?) #580
Comments
Hello, Thanks! |
Just did a quick test and seems to work fine (using main branch):
That's because there are two services, an old one written in node we are slowly deprecating and a go service, which is the main one and the one that listens on the port you specify. The node service doesn't need external connectivity so if you are using a container only the port you configure needs to be exposed. The extra port is only needed for the go service to forward the requests for the endpoints that we haven't migrated yet. We wrote about this here Also, coincidentally we just migrated the |
Yah exposing it was the way to go for our stack and a very simple work-around. Docker-file used auth:
container_name: auth
command: serve
image: nhost/hasura-auth:0.34.1
restart: always
ports:
- 4050:4000
env_file:
- .env
environment:
AUTH_ENABLE_CHANGE_ENV: "false"
AUTH_API_PREFIX: ""
AUTH_CLIENT_URL: ${AUTH_CLIENT_URL}
AUTH_EMAIL_SIGNIN_EMAIL_VERIFIED_REQUIRED: "true"
AUTH_LOCALE_DEFAULT: en
AUTH_LOG_FORMAT_TEXT: "true"
AUTH_SERVER_URL: http://localhost:4050
AUTH_SMTP_AUTH_METHOD: PLAIN
AUTH_SMTP_HOST: ${AUTH_SMTP_HOST}
AUTH_SMTP_PASS: ${AUTH_SMTP_PASS}
AUTH_SMTP_PORT: 1025
AUTH_SMTP_SECURE: "false"
AUTH_SMTP_SENDER: ${AUTH_SMTP_SENDER}
AUTH_SMTP_USER: user
AUTH_USER_DEFAULT_ALLOWED_ROLES: ${AUTH_USER_DEFAULT_ALLOWED_ROLES}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_DATABASE_URL: ${HASURA_GRAPHQL_DATABASE_DOCKER_URL}
HASURA_GRAPHQL_GRAPHQL_URL: http://graphql-engine:8080/v1/graphql
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
# volumes:
# - ./apps/email-templates:/app/email-templates I believe I was using the ENV But yah, repeating that changing what was exposed works plenty fine. |
In the latest version 34.1, whenever I run the verify endpoint, I get
Not sure what is happening here. I can signup, but can't verify. Not sure where its getting
4001
from either.I did notice when I set the server port to 4050, it says listening on 4051.
I suspect that something under the hood requires 4000 or 4001 is hardcoded.
Actually just tested before posting. If the auth server is set to
4000
it works, once you change it, then it cant find4001
suddenlyThe text was updated successfully, but these errors were encountered: