Identityserver4 使用AuthorizeRequest&;的空标识令牌;授权响应

Identityserver4 使用AuthorizeRequest&;的空标识令牌;授权响应,identityserver4,Identityserver4,我试图在MVC操作中使用AuthorizeRequest和AuthorizeResponse来查看用户是否已经过身份验证,但是响应对象中除了原始、范围和状态之外,几乎所有内容都返回null。伊瑟罗是假的 我有一个应用程序A和一个应用程序B。我想知道应用程序A中的用户是否已登录应用程序B var request = new AuthorizeRequest("https://localhost:5000/connect/authorize"); var url =

我试图在MVC操作中使用AuthorizeRequest和AuthorizeResponse来查看用户是否已经过身份验证,但是响应对象中除了原始、范围和状态之外,几乎所有内容都返回null。伊瑟罗是假的

我有一个应用程序A和一个应用程序B。我想知道应用程序A中的用户是否已登录应用程序B

        var request = new AuthorizeRequest("https://localhost:5000/connect/authorize");

        var url = request.CreateAuthorizeUrl(
            clientId: "Portal-Local",
            scope: "openid profile email",
            responseType: OidcConstants.ResponseTypes.IdToken,
            responseMode: OidcConstants.ResponseModes.FormPost,
            redirectUri: "https://localhost/Portal/home/index",
            state: CryptoRandom.CreateUniqueId(),
            nonce: CryptoRandom.CreateUniqueId());

        var response = new AuthorizeResponse(url);

        var accessToken = response.AccessToken;
        var idToken = response.IdentityToken;
        var state = response.State;

我能够使用客户样本重现这个问题。我打开了一个关于IS4 Git的问题。