I use Spring Boot OAuth2 and @EnableOAuth2Client
. My application runs on HTTPS but when I try to login to Odnoklassniki Social Network it generates following url:
https://connect.ok.ru/oauth/authorize?client_id=XXXXXX&redirect_uri=http://example.com/api/login/ok&response_type=code&state=XXXXXX
Is any way to change http://example.com
to https://example.com
in this url ?