使用 SAML 和 azure Active Directory 的 Azure 自定义应用程序 SSO

标签 azure authentication azure-active-directory single-sign-on saml-2.0

我对 Azure Active Directory 不太熟悉。我想要实现的是: 我有一个 .net 核心应用程序(后端 api),将使用角度应用程序调用它。 我的要求是使用 Azure Active Directory 进行身份验证并启用单点登录。

花了一些时间,我发现有两种方法可以做到这一点,

  1. 使用 OpenID Connect
  2. 使用 SAML

我想使用 SAML。我尝试按如下方式实现 SAML SSO:

  1. 我在 Active Directory 下注册了一个重定向应用程序 到我的角度应用程序。我还读到,我们的任何应用程序 在App注册中注册将默认使用OpenID, 没有可用的 UI 使其成为 SAML,但我们可以做同样的事情 使用 list 。
  2. 我们可以使用企业应用程序注册应用程序以启用 SAML

我的问题是,

  1. 有没有一种方法可以在我的应用程序中进行身份验证并启用 SSO 使用应用程序注册进行注册?
  2. 注册时我应该选择哪些选项来启用 SAML SSO 企业应用?如果我选择我的注册应用程序 企业应用程序它为我提供了以下内容:

The single sign-on configuration is not available for this application in the Enterprise applications experience. localhost was created using the App registrations experience.

Please go to localhost in the App registrations experience to edit properties such as reply URLs, identifiers, claims, among others. Your account should have the required permissions (Global Administrator, Cloud Application Administrator, Application Administrator, or owner of the app object).

  • 我的 Angular 和 .net core 中的代码会发生什么变化 应用程序?
  • 任何引用都会非常有帮助。

    TIA

    最佳答案

    您无法通过应用程序注册执行此操作,但可以通过 Enterprise Application experience 执行此操作。 。要设置 SAML SSO,您需要转至应用程序 > 管理 > 单点登录 > 选择 SAML。 Quickstart完成从企业应用程序设置 SAML SSO 的所有步骤。

    enter image description here

    有关基本 SAML 配置值,请参阅 Configure SAML Single Sign-On .

    您可以使用SAML toolkit以及随附的示例,用于测试 SAML 单点登录与 Azure AD 的集成

    关于使用 SAML 和 azure Active Directory 的 Azure 自定义应用程序 SSO,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65492973/

    相关文章:

    PHP 登录使用 SHA1 连接到 MySQL 数据库

    c# - Azure AD 图形 API 用户 memberOf 嵌套组

    azure - Microsoft Azure 是否滥用 SCIM RFC? `emails[type eq "工作"].value eq "foo@example.com"`

    sql - Entity Framework Azure SaveChanges - 日期时间,错误一小时

    azure - Terraform azurerm 2.x 错误 : "features": required field is not set

    c# - DataCache.Increment 是否可用于 WindowsAzure 共享缓存?

    azure - myapps.microsoft.com Azure AD 中外部用户可见的所有用户

    azure - 如何从 Ubuntu Azure VM 将 Meteor 应用程序部署到互联网?

    Magento - 'proceed to checkout' 按钮,如果未登录,则转到登录页面

    ruby-on-rails - config.authentication_keys 和 config.request_keys 在设计上的区别