问题标签 [component-space]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
333 浏览

spring-boot - SAML 2.0 与 Spring Boot 应用程序的集成问题

我正在尝试将基于 Spring Boot 的应用程序与使用 componentSpace lib 进行 SAML 的 IDp 集成。Spring 应用程序(服务提供者)可以与 Octa 等其他 Idp 一起正常工作。但是在与组件 Space 集成时,它面临问题并出现以下错误。将日志与 Octa 请求进行比较时的差异:

  1. Octa 正在发送 Get 请求,而来自组件空间的是 post 请求。
  2. 从 Octa 我能够获得用户 ID(登录 ID),但从组件空间它是作为匿名用户进行的。所以我的问题是我们可以点击获取请求而不是发布。以及为什么不设置 userId 值的任何原因?

日志:

0 投票
0 回答
149 浏览

adfs - There is no pending identity provider logout request

I'm using ComponentSpace for SSO which is working fine, but it gives error when I try to SendSLO from the SP, where SLO is initiated by the ADFS server (IdP).

The code:

enter image description here

When IdP initiates SLO, first I call ReceiveSLO, then logout from the service provider, at last call SendSLO, but it throws ComponentSpace.SAML2.Exceptions.SAMLProtocolException: 'There is no pending identity provider logout request.'

How can I fix this? If I call IsSendSLOPending, it returns false, why is that?

Thank you.

0 投票
1 回答
24 浏览

authentication - 使用 ComponentSpace 将 IdentityServer4 暴露为 IdentityProvider 和 ServiceProvider

我是 ComponentSpace 的新手,ComponentSpace/IdentityServer4 的任何专家都请就以下要求向我提出建议。

我的要求是使 IdentityServer4 既可以作为 IdentityProvider 又可以作为 ServiceProvider 兼容。

是否可以在单个实例中满足上述要求(或)我是否需要为 IdentityProvider 和 ServiceProvider 提供单独的实例?

目前,我已经完成了运行 IdP 和 SP 的独立实例的 POC,它按预期工作。期待让它在同一个实例中运行。

我遵循了下面提到的文档。 https://www.componentspace.com/documentation/saml-for-asp-net/ComponentSpace%20SAML%20for%20ASP.NET%20Developer%20Guide.pdf

POC 在 .net Core 2.2 和 ComponentSpace 2.5 中完成

提前致谢!

0 投票
0 回答
44 浏览

asp.net-core - 在 asp.net 核心中拆分 serilog 文件时组件空间跟踪不起作用

由于一些技术原因,我们使用 serilog 将日志和错误文件分成两个单独的文件。在这种情况下,不会单独记录来自组件空间跟踪的日志和错误。

请参考以下正在使用的 serilog 配置

我还按照下面的链接启用了跟踪, https ://www.componentspace.com/Forums/7936/Enabling-SAML-Trace?Keywords=serilog 当我的配置名称与“ Serilog:Async ”相同时效果很好",但我的问题是我使用名称“Logger”将单个记录器拆分为日志和错误,因此在这种情况下,组件空间跟踪不起作用。

注意:您好,感谢您的回复,我在 appsettings.json 文件中没有这些配置,而是在自定义 json 文件中拥有这些配置,并且该自定义 json 文件的路径已添加到 appsettings.json 文件中

下面的代码片段用于从 custon 文件加载日志配置

谁能帮我解决这个问题?