Spring boot 此iss声明不等于配置的颁发者。Spring安全Oauth2

Spring boot 此iss声明不等于配置的颁发者。Spring安全Oauth2,spring-boot,spring-security,oauth-2.0,spring-security-oauth2,jwt-auth,Spring Boot,Spring Security,Oauth 2.0,Spring Security Oauth2,Jwt Auth,我正在使用spring.security.oauth2.resourceserver.jwt.issuer uri和spring.security.oauth2.resourceserver.jwt.jwk set uri作为保护spring引导API的一部分 如果我在发布者uri中使用公共URL,我没有任何问题。但是我想在发布者uri中使用内部(私有)URL,因为我不希望这个通信量是公共的,因为spring启动应用程序和oauth提供程序都在同一个网络中 当我尝试通过internet(公共)访

我正在使用
spring.security.oauth2.resourceserver.jwt.issuer uri
spring.security.oauth2.resourceserver.jwt.jwk set uri
作为保护spring引导API的一部分

如果我在发布者uri中使用公共URL,我没有任何问题。但是我想在发布者uri中使用内部(私有)URL,因为我不希望这个通信量是公共的,因为spring启动应用程序和oauth提供程序都在同一个网络中

当我尝试通过internet(公共)访问此API时,我使用公共URL生成令牌,出现了问题

我得到以下错误。。如果我想使用内部(私有)URL通过内部网络在Spring bootOAuth Provider之间进行通信,我应该怎么做

Bearer error="invalid_token",
error_description="An error occurred while attempting to decode the Jwt: 
This iss claim is not equal to the configured issuer", error_uri="https://tools.ietf.org/html/rfc6750#section-3.1"