使用Thinktecture.IdentityServer3作为联合提供程序,转换声明

Mad*_*kor 3 federated-identity claims-based-identity thinktecture-ident-server

你好我一直试图找出如何配置IdentityServer3成为一个多租户联合提供商,可以转换和丰富从ADSF,Google +,Microsoft帐户返回的索赔.

有没有人有任何试图执行以下操作的示例代码?

MyWebApp(multi-tenant) <-- IdSrv3 <---- ADFS
                            ^
                            |<------- Google+
                            |<------- Microsoft Account
                            |<------- Facebook Account
Run Code Online (Sandbox Code Playgroud)

lea*_*ege 5

您需要实现IUserService - 特别是AuthenticateExternalAsync方法.在那里,您收到外部声明并以编程方式转换它们.

https://identityserver.github.io/Documentation/docs/advanced/userService.html