Cognito - Auth0 SAML请求

0

【以下的问题经过翻译处理】 你好,我正在使用Auth0作为SAML身份提供者,并结合其组织功能。我在Cognito中有多个客户端,对于每个客户端,我想在登录URL中传递不同的组织查询参数。登录URL在SAML元数据中。因此,我需要在将其发送到Auth0之前修改它。

例如:<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://<Auth0-domain>/samlp/<Client_id>?organization=<organization_id>"/>

我想知道是否可以通过lambda触发器在请求发送到Auth0之前拦截它?或者还有其他方法吗?

请建议,谢谢!

1 Answer
0

【以下的回答经过翻译处理】 我不相信你能用 lambda 调用拦截它。

您可以做的是在导出元数据之前修改 Idp 设置,以便您可以在将 URL 导入 aws 时修改它。但是,我不知道在 cognito 中有一个公开的变量,你甚至可以将其注入到 url 中。

您可以为每个客户设置不同的 idp 吗?

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions