Servicestack.Client 找不到受保护的命名空间
Servicestack.Client Namespace Secured could not be found
当我尝试发出新请求以生成新访问令牌时,我找不到类型 "new Secured"。
var authClient = new JsonServiceClient("http://localhost/authentication/")
{
RefreshToken = Request.GetCookieValue("ss-refreshtok"),
RefreshTokenUri = "http://localhost/authentication/access-token"
};
var jwt = authClient.Send(new Secured());
即使我已经 Servicestack.client 安装了它也找不到。但是使用 new Authenticate()
没问题。
Secure
Request DTO 是受 [Authenticate]
属性保护的服务的 Request DTO 示例,它不是内置 DTO,您应该使用您的 Request DTO 替换它相反。
当我尝试发出新请求以生成新访问令牌时,我找不到类型 "new Secured"。
var authClient = new JsonServiceClient("http://localhost/authentication/")
{
RefreshToken = Request.GetCookieValue("ss-refreshtok"),
RefreshTokenUri = "http://localhost/authentication/access-token"
};
var jwt = authClient.Send(new Secured());
即使我已经 Servicestack.client 安装了它也找不到。但是使用 new Authenticate()
没问题。
Secure
Request DTO 是受 [Authenticate]
属性保护的服务的 Request DTO 示例,它不是内置 DTO,您应该使用您的 Request DTO 替换它相反。