在身份服务器中刷新令牌异常 4

问题描述 投票:0回答:1

基于以下内容,我正在进行刷新工作 刷新令牌更新

enter image description here但是当令牌过期后,当请求新的刷新令牌时,得到以下错误信息。

enter image description here

以下是我的代码

   var tokenClientOptions = new TokenClientOptions
                        {
                            Address = "https://localhost:5000", //configuration.TokenEndpoint,
                            ClientId = "webclient",//openIdConnectOptions.ClientId,
                            ClientSecret ="secret"  // openIdConnectOptions.ClientSecret
                        };

                        var httpClientFactory = serviceProvider.GetService<IHttpClientFactory>();
                        using var httpClient = httpClientFactory.CreateClient();

                        var tokenClient = new TokenClient(httpClient, tokenClientOptions);
                        var tokenResponse = await tokenClient.RequestRefreshTokenAsync(refreshToken, cancellationToken: cancellationToken).ConfigureAwait(false);

下面是我的Html响应。

enter image description here

我已经给了基本路径idetity服务器4。 Pls let me know reason am getting error.Thanks in advance.

asp.net-core identityserver4
1个回答
1
投票

身份服务器的令牌端点 程式化地请求代币是 /connect/token.

地址的URL需要是 https://localhost:5000/connect/token.

© www.soinside.com 2019 - 2024. All rights reserved.