我正在使用 google-oauth-java-client 库对 NetIQ 身份提供程序进行身份验证。授权请求到达 IdP,但它不接受通过 HTTP 的回调:
<amLogEntry> 2016-08-11T19:02:26Z WARNING NIDS Session Logger:
com.novell.nam.nidp.oauth.core.helpers.OAuth2AuthorizationRequest:
http://localhost/callback - redirection url must be https
</amLogEntry>
有没有办法使用 https 设置回调 url?这是请求授权授予的 java 代码:
LocalServerReceiver receiver = new LocalServerReceiver.Builder()
.setHost(OAuth2ClientCredentials.DOMAIN)
.setPort(OAuth2ClientCredentials.PORT).build();
return new AuthorizationCodeInstalledApp(flow, receiver).authorize("user");