Spring boot 如何解决Okta应用程序问题?
我按照这里的指示: 在这里: …设置示例reactjs应用程序,与Okta进行身份验证 在我的开发者Okta账户上工作得很有魅力 但是,当我尝试使用组织的Okta配置时,我在尝试启动资源服务器时遇到了错误 以下是my application.yml中的配置:Spring boot 如何解决Okta应用程序问题?,spring-boot,okta,Spring Boot,Okta,我按照这里的指示: 在这里: …设置示例reactjs应用程序,与Okta进行身份验证 在我的开发者Okta账户上工作得很有魅力 但是,当我尝试使用组织的Okta配置时,我在尝试启动资源服务器时遇到了错误 以下是my application.yml中的配置: okta: oauth2: issuer: "https://<myOrgName>.okta-emea.com/oauth2/default" client-id: "<myClientId>
okta:
oauth2:
issuer: "https://<myOrgName>.okta-emea.com/oauth2/default"
client-id: "<myClientId>"
client-secret: "<myClientSecret>"
我看到这个错误:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) on project okta-spring-boot-oauth-resource-server: An exception occurred while running. null: InvocationTargetException: Failed to process import candidates for configuration class [org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerConfiguration]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwkTokenStoreConfiguration: 401 Unauthorized -> [Help 1]
对我遗漏的东西有什么指点吗?我如何排除出现问题的原因?Okta中有任何日志吗?我们需要启用付费附加组件“API访问管理”来实现此功能
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) on project okta-spring-boot-oauth-resource-server: An exception occurred while running. null: InvocationTargetException: Failed to process import candidates for configuration class [org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerConfiguration]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwkTokenStoreConfiguration: 401 Unauthorized -> [Help 1]