wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
846 stars 785 forks source link

/publisher stuck at You will be redirected to /publisher/services/auth/login with error 901401: No partial token found #7506

Closed amritaramnauth closed 4 years ago

amritaramnauth commented 4 years ago

Description:

On a server (not localhost), after installing and configuring IS as KM for API Manager, I made changes to deployment.toml configuration for hostname. Products use nginx as a proxy. While /carbon works well, the /publisher gets stuck and /devportal sign up doesn't respond. Eventually, the server closes connection with a timeout.

I made the adjustments to IS for admin_store and admin_publisher callbacks as follow

regexp=(https://[hostname]/devportal/services/auth/callback/login|https://[hostname]/devportal/services/auth/callback/logout)

and

regexp=(https://[hostname]/publisher/services/auth/callback/login|https://[hostname]/publisher/services/auth/callback/logout)

I also made the change to /services route

[apim.key_manager]
service_url = "https://[is_hostname]/services/"

However, the console returns an error for both publisher and devportal

Publisher:

Error: 901401: No partial token found!,redirecting to login page.

Screen: Screenshot from 2020-02-19 07-48-46

Devportal:

User not found. Token refreshing failed. 
Error: Error: No partial token found,redirecting to Anonymous View

Screen: Screenshot from 2020-02-19 07-50-11

The affected APIs seem to be all /services routes.

Is this a configuration problem, what else needs to be changed?

Affected Product Version:

3.0.0 5.9.0 (for IS as KM)

Environment details (with versions):


Optional Fields

Related Issues:

https://github.com/wso2/product-apim/issues/7321

amritaramnauth commented 4 years ago

Solved just as similar issue. Port 9443 was closed for external requests.

TohidMakari commented 3 years ago

How to open 9443 port for external request?

MPincay commented 3 years ago

configure port rule enable to level SO with the command :

firewall-cmd --zone=public --add-port=9443/tcp --permanent firewall-cmd --reload

It's resolved your problem?

TohidMakari commented 3 years ago

@MPincay my problrm was else where and solved