Click here to Skip to main content
15,610,483 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i use an core 2.2 project that send request to another project(web api),if i want to add identity (with rigth click to project and add identity),
I have to do this in my own project or in the api project.
if add identity in api project,how to add [authorize] for my own project controller

What I have tried:

how to authorize and authentication in my project
Updated 16-Nov-20 5:34am

1 solution

The official documentation provides a ton of information for you to get started about it. Here you go: Create an ASP.NET Core app with user data protected by authorization | Microsoft Docs[^]

Here's another useful article that you can refer to: ASP.NET Core 2.2 - Simple API for Authentication, Registration and User Management | Jason Watmore's Blog[^]
Share this answer
[no name] 7-Dec-20 3:56am    
I managed to use jwt on the webapi site and send the token to my mvc site.
I can also receive the token on the mvc site
How can I signin now?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900