我正在使用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");发布于 2017-01-19 18:40:08
您可以按照这些instructions创建密钥库文件和自签名证书。请注意,您必须将TLS值设置为您要使用的sslProtocol版本。
此外,您可能需要生成一个信任库并向其中添加google证书。信任库基本上持有您信任的证书(显然)。要生成信任库,您可以使用与上面链接中相同的命令。要将该信任库添加到您的tomcat中,必须添加以下内容:
truststoreFile="${user.home}/truststore“
truststorePass="changeit“
到您的连接器配置。
https://stackoverflow.com/questions/39150419
复制相似问题