小编Tre*_*oks的帖子

使用Thinktecture Identity Server 2进行单点注销

我对Thinktecture的Identity Server 2的理解是没有实现单点登出.换句话说,当您退出一个依赖方时,Identity Server不会自动将用户从任何其他RP中签名.我知道有关于此的帖子,但我还没有找到任何关于如何扩展Identity Server来执行此操作的内容.我已经看到一些帖子说Identity Server已经开箱即用了...如果确实如此,我还是无法找到方法.

我有SSO与Asp.NET Web Forms,WIF和Identity Server 2一起工作得很好,而且我能够很好地退出RP,但从我可以看出,Identity Server中需要一些额外的代码才能将用户从他可能登录的任何其他RP中完全签名.

有没有人扩展Identity Server以实现单点注销?

这是可以在Identity Server中配置还是需要一些编码的东西?

如果你拥有它,我真的很感激.

谢谢.

asp.net wif single-sign-on thinktecture-ident-server

4
推荐指数
1
解决办法
1772
查看次数

Service Fabric Error: Not authorized to connect

I am attempting to run a Service Fabric example found here:

Service Fabric Getting Started Sample

I am loading it into Visual Studio 2017 CE. I have set the Fabric app as the startup project and it appears to build and deploy just fine.

Visual Studio 2017 CE

The Service Fabric dashboard shows everything up and running.

Fabric Dashboard

However, when I try to connect using the example WebService project I get the following error:

WebService> Unhandled Exception: System.Fabric.FabricConnectionDeniedException: Not authorized to connect ---> System.Runtime.InteropServices.COMException: Exception …
Run Code Online (Sandbox Code Playgroud)

azure-service-fabric visual-studio-2017

4
推荐指数
1
解决办法
5327
查看次数

NgxLocalStorage 不检索值

我正在学习如何为 Angular 2 使用 Visual Studio 2017 SPA 模板。

对于这个练习,我希望我的 HomeComponent 在登录我的 AppLoginComponent 后显示存储在本地存储 (NgxLocalStorage) 中的登录用户的名称。https://www.npmjs.com/package/ngx-localstorage

我已经研究过这个问题,我相信我走上了正轨,但由于某种原因,我的 HomeComponent 在 localStorage 中没有看到键/值对。但是,在登录()中设置后,我可以在 Chrome 的开发人员工具中看到它。

NgxLocalStorage 有一个名为 get 而不是 getItem 的方法,但它的工作方式似乎与 getItem 相同。不幸的是,它没有检索我的价值。

我对 Angular 2 还很陌生,我确定我只是在某个地方遗漏了一些东西,请帮忙。

我已经将 NgxLocalStorageModule 导入到 app.module.shared 中的 NgModule 中:

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
import { NgxLocalStorageModule } from 'ngx-localstorage';

import …
Run Code Online (Sandbox Code Playgroud)

visual-studio local-storage visual-studio-2017 angular

3
推荐指数
1
解决办法
641
查看次数

DocumentDB COUNT不一致的结果

我一直在使用刚刚发布的DocumentDB中的COUNT聚合尝试一些查询.即使我多次运行完全相同的查询,我也会经常得到不同的结果.我知道我的数据没有改变.是否存在聚合函数的错误,我是否可以达到我的RU限制并且它只返回适合我的RU数量的计数,或者是否还有其他事情?

我的查询如下:

Select COUNT(c.id) FROM c WHERE Array_Contains(c.Property, "SomethingIAmSearchingFor")
Run Code Online (Sandbox Code Playgroud)

我的集合包含大约12k个非常小的文档(每个3或4个字符串属性和一个少于10个字符串项的数组)

azure azure-cosmosdb

2
推荐指数
1
解决办法
657
查看次数

在Azure上使用CosmosDB进行微服务

我已经阅读了一些有关微服务的信息,并且最受欢迎的方法似乎是为每个微服务提供一个单独的数据库。关于Azure的CosmosDB,这是否意味着每个服务都有单独的表?架构此的最佳方法是什么?

azure microservices azure-cosmosdb

1
推荐指数
1
解决办法
658
查看次数