-
Notifications
You must be signed in to change notification settings - Fork 26
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
[gateway] CSRFHandler seems not handle proxy context-path #4034
Comments
Hi @Adito5393 , I think the email configuration is correctly loaded but the The node dependency is currently not update to date for the AM v3. The 403 response is not related to the email settings. Do you have more logs ? |
I've checked all 3 AM containers and none of them generate any logs from the register of a user action (based on the timestamp of the displayed logs). Could you run the platform docker-compose example, define an AM security domain and register a new user at URL: Or advice on how to provide the logs? |
Can you try with the Incognito mode (private browsing) ? |
I usually use the Incognito mode. Here's a screenshot: Is it helpful? Could you reproduce the issue using a clean build from the docker-compose platform example? @tcompiegne I've managed to reproduce the error on your nightly version server Or just skip to the register link of the WEB application I've created: TestRegisterNewUser register link |
@tcompiegne @brasseld Could you guys manage to reproduce the error or it is my setup faulty? |
In addition, the problem is indeed due to csrf cookie which is not set with the appropriate path. In this case, cookie path should be |
I am setting the email configuration in 2 containers: graviteeio/am-management-api & graviteeio/am-gateway (mainly, because I don't know exactly which one is responsible for sending email when a user registers in the AM website within a specific security domain). Following the GitHub platform v3.x example, I have this relevant code in the docker-compose:
Following the technical API guide, within the docker container, I obtain:
/opt/graviteeio-am-gateway # echo $gravitee_email_enabled
true
/opt/graviteeio-am-gateway # echo $gravitee_email_host
smtp.gmail.com
curl http://admin:adminadmin@localhost:18092/_node/configuration
"email.enabled" : false,
"email.host" : "smtp.my.domain",
/opt/graviteeio-am-gateway # echo $gravitee_email_enabled
true
/opt/graviteeio-am-gateway # echo $gravitee_email_host
smtp.gmail.com
curl http://admin:adminadmin@localhost:18093/_node/configuration
"email.enabled" : false,
"email.host" : "smtp.my.domain",
Expected Behavior
The curl of the
/_node/configuration
should match with the docker-compose environment settings.Current Behavior
The curl of the
/_node/configuration
does not match with the docker-compose environment settings.Steps to Reproduce (for bugs)
Context
This issue leads to new users unable to register within a specified security domain:
https://am.gravitee.io/auth/SECURITYDOMAIN/register?client_id=**********
Failed to load resource: the server responded with a status of 403 ()
Your Environment
The text was updated successfully, but these errors were encountered: