Closed Caizhenyu closed 6 years ago
I don't understand your question. What are you trying to achieve?
@blowdart , thank you and sorry , it's not clear . I want to implement a identity system by using net core identity, and the system isn't a mvc project, it just a api project. so i need generate a Antiforgery token. I found my answer here https://docs.microsoft.com/en-us/aspnet/core/security/anti-request-forgery
Ah thanks! One other option I'd look at is IdentityServer, so you'd use OIDC to get a token to authenticate against the API project through the authorization header. Which is nice and standard.
I want to create a Web Api project and i want to use Identity. I know in MVC' script, there is
@await Html.PartialAsync("_ValidationScriptsPartial")
, but in api project, can i get a _ValidationScriptsPartial or other property the same use?