微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 sourceuser 中创建 SSO 连接时,我的 issuer 值设置为 null

如何解决在 sourceuser 中创建 SSO 连接时,我的 issuer 值设置为 null

我正在尝试使用 SAML 为启用了 Cognito 的用户创建 sso 登录

  String userId = "ssoid";
   ProviderUserIdentifierType destination =  new ProviderUserIdentifierType();
   destination.setProviderName("Cognito");
   destination.setProviderAttributeValue(userId);
   
   ProviderUserIdentifierType source =  new ProviderUserIdentifierType();
   source.setProviderAttributeName("UserID");
   source.setProviderName("ssocircle");
   source.setProviderAttributeValue("test");
   AdminLinkProviderForUserRequest r = new AdminLinkProviderForUserRequest();
   r.withUserPoolId("us-east-1_njg6RKfph").withSourceUser(source).withDestinationUser(destination);
   r.putCustomQueryParameter("issuer","https://idp.ssocircle.com");
   
   cognitoIdentityProvider.adminLinkProviderForUser(r);

代码运行后,我得到的响应是:

{
      "userId":"ssoid","providerName":"ssocircle","providerType":"SAML","issuer":null,//This issuer is set to null
      "primary":false,//This value should be set to true
      "dateCreated":1617258354212
   },

有人可以帮助我我在这里做错了什么以及如何设置发行人。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。