Skip to content
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

Login redirect always points to am.wso2.com #570

Open
wian-plus opened this issue Feb 23, 2023 · 1 comment
Open

Login redirect always points to am.wso2.com #570

wian-plus opened this issue Feb 23, 2023 · 1 comment

Comments

@wian-plus
Copy link

Description:

After a fresh install following Single Node Deployment using Kubernetes Helm, we set up our own DNS as follows:
am.<OUR DOMAIN> ---> <EXTERNAL-IP>
gateway.am.<OUR DOMAIN> ---> <EXTERNAL-IP>
websub.am.<OUR DOMAIN> ---> <EXTERNAL-IP>

There are no entries in the /etc/host file, as we are using our own domain.

An example of how we updated the Ingress for wso2am-single-node-am-ingress is shown below:

Screenshot 2023-02-23 at 17 20 00

We did the same for wso2am-single-node-am-gateway-ingress and wso2am-single-node-am-websub-ingress and respectively updated the host values to gateway.am.<OUR DOMAIN> and websub.am.<OUR DOMAIN>.

Thereafter, we navigate to am.<OUR DOMAIN>/publisher. We get a brief message "You will be redirected to /publisher/services/auth/login", and there after we are redirected to
https://am.wso2.com/oauth2/authorize<OTHER PARAMS>&redirect_uri=https://am.wso2.com/publisher/services/auth/callback/login

As you can see, the host is am.wso2.com which will fail to resolve. Another issue is that the redirect_uri also contains am.wso2.com as a host. How and where can we set this to be am.<OUR DOMAIN>.

If we manually change the redirect in the browser to
https://am.<OUR DOMAIN>/oauth2/authorize<OTHER PARAMS>&redirect_uri=https://am.wso2.com/publisher/services/auth/callback/login, it will give us access after 2 to 3 refreshes, but that is extremely hackey.

Suggested Labels:
Login, redirect, first time setup, domain

Affected Product Version:
version 4.1.0-1

OS, DB, other environment details and versions:
AWS EKS (Kubernetes 1.24)
Helm V3
Macbook Pro M2
MacOS Ventura 13.0.1 (22A400)

Steps to reproduce:
See above

@nniksa91
Copy link

nniksa91 commented Mar 23, 2023

Hostnames should be set up inside values file each section has it's own hostname if you changed them in ingress it will be overrided by values.yaml which default to the one you mentioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants