'Gateway failed to obtain oauth2 authorization code

You can access oauth2 authentication server directly and get authorization code normally.

However, if you access through the gateway and enter the user name and password in the framework login interface, you cannot pass the authentication and no error is reported.

http://localhost:8001/auth/oauth/authorize?response_type=code&client_id=admin -app-code&redirect_ uri= https://www.baidu.com



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source