simplesamlphp / simplesamlphp/simplesamlphp-module-discopower

Filter entities globally?

未关闭
#29 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
PHP
星标
5
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

According to the docs, filtering identity providers is possible per SP.

We have 100s of SPs, and now I'm looking for a way to show a specific IdP only for a few SPs.

The only way I could make this work was by applying a snippet to those few SPs:

  'discopower.filter' => [
      'tags.include' => [
         'all'
      ],
      'entities.include' => [
          'https://needle.idp',
      ],
  ],

and then on every other SP excluding it:

  'discopower.filter' => [
      'entities.exclude' => [
          'https://needle.idp',
      ],
  ],

As said this works but a bit cumbersome as I'd have to make sure this will be there for each new SP etc.

Would it makes sense to be able to supply such a config at a higher level, for example in saml20-idp-hosted.php or some other place?

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 docs/discopower.md 中的过滤部分开始,将其中按 SP 配置的内容与提议的 saml20-idp-hosted.php 位置进行比较。跟踪每个 SP 的 discovery 过滤器是如何加载的,并确定可以在哪里应用更高层级的设置。当无需向每个 SP 添加代码片段即可全局配置所需的 IdP 可见性时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
authentication
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。