Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring Boot OAuth2 https重定向\u uri而不是http_Spring_Spring Boot_Spring Oauth2 - Fatal编程技术网

Spring Boot OAuth2 https重定向\u uri而不是http

Spring Boot OAuth2 https重定向\u uri而不是http,spring,spring-boot,spring-oauth2,Spring,Spring Boot,Spring Oauth2,我使用Spring Boot OAuth2和@enableAuth2Client。我的应用程序在HTTPS上运行,但当我尝试登录到Odnoklassniki社交网络时,它会生成以下url: https://connect.ok.ru/oauth/authorize?client_id=XXXXXX&redirect_uri=http://example.com/api/login/ok&response_type=code&state=XXXXXX 有没有办法改变htt

我使用Spring Boot OAuth2和
@enableAuth2Client
。我的应用程序在HTTPS上运行,但当我尝试登录到Odnoklassniki社交网络时,它会生成以下url:

https://connect.ok.ru/oauth/authorize?client_id=XXXXXX&redirect_uri=http://example.com/api/login/ok&response_type=code&state=XXXXXX

有没有办法改变
http://example.com
https://example.com
在此url中?

在您的社交网络中注册您的应用程序。可能的答案如下: