Name, userName), new Claim(ClaimTypes.Role, "老師") }; var claimsIdentity = new ClaimsIdentity( claims, CookieAuthenticationDefaults.
確定! 回上一頁