#NGINX configuration on AWS AMI

1 messages · Page 1 of 1 (latest)

near reef
#

Hi team Appsmith,

I have hosted Appsmith Business edition on my AWS environment through AWS AMI, works like a charm! I have implemented AWS Cognito as SSO which works as well. But, when the authentication is successfull, I get redirected to https://user/login?error=true. So without the original domain name. Now I have tried to search for the NGINX configuration (as stated in the documentation), but I cannot find it. How can I append the original domain name so that it redirects to my domain name?

devout steepleBOT
#

Hey There,

We've registered your query, and our team will get back to you soon.

Regards,
Pranav

devout steepleBOT
#

Hey there,

To help us debug the issue, please consider the following steps and provide us
with the information:

Best regards,
Jimmy H.

Loom

Record your screen, share your thoughts, and get things done faster with async video.

Guide on how to get container logs for different Appsmith deployments

near reef
#

Backend error log:

org.springframework.security.oauth2.core.OAuth2AuthenticationException: [invalid_user_info_response] An error occurred reading the UserInfo response: [invalid_user_info_response] An error occurred while attempting to retrieve the UserInfo Resource from 'https://{TEST_URL}.auth.eu-central-1.amazoncognito.com/oauth2/userinfo': response contains invalid content type 'text/html;charset=UTF-8'. The UserInfo Response should return a JSON object (content type 'application/json') that contains a collection of name and value pairs of the claims about the authenticated End-User. Please ensure the UserInfo Uri in UserInfoEndpoint for Client Registration 'oidc' conforms to the UserInfo Endpoint, as defined in OpenID Connect 1.0: 'https://openid.net/specs/openid-connect-core-1_0.html#UserInfo'
    at org.springframework.security.oauth2.client.userinfo.DefaultReactiveOAuth2UserService.lambda$loadUser$5(DefaultReactiveOAuth2UserService.java:154)

I've changed our domain name to {TEST_URL}.

near reef
#

Found the issue. The URL is case sensitive. In my URL I point to the /userinfo endpoint, while I need to point to the /userInfo endpoint. Minor difference, big result haha

devout steepleBOT
#

I'm glad you were able to get this issue fixed.
Any other thing I can help with?

near reef
#

Not at the moment no.