我已登录外部提供商(Google),后者返回了一个访问令牌 我的外部回拨调用此代码来获取用户声明:
public async Task<IActionResult> ExternalLoginCallback(string returnUrl)
{
// read external identity from the temporary cookie
var info = await HttpContext.Authentication.GetAuthenticateInfoAsync(
IdentityServerConstants.ExternalCookieAuthenticationScheme);
var tempUser = info?.Principal;
if (tempUser == null)
{
throw new Exception("External authentication error");
}
// retrieve claims of the external user
var claims = tempUser.Claims.ToList();
//Do more work
}
现在当我注销Identity Server 4并重新登录时,它不再提出同意请求。然而我的所有声明仍然存在,身份服务器存储在哪里或者是否从cookie中检索到了哪些?