Getting to use ASP.NET Core Identity

Fourth week as an intern in Tong Hin. Last Friday, Mr.Peter mention about Identity on ASP.NET Core for the testing. I do some research on it on Monday and found out that Core Identity (calling this for short term) is to create user but with more promising security. Core Identity is a membership system provided by Microsoft that handles authentication, authorization, and user management features. This give us more time to focus on the business logic than the security. It took me some time to learn and to implement it.

Due to the Web application that might grow bigger and bigger, I think it is good to implement Core Identity as it provide password hashing and able to support multiple authentication schemes, such as cookie-based, JWT, and third-party OAuth providers.

On Monday, Mr.Peter asked me to do some research on Core Identity and state the advantages between our custom user and Core Identity’s users. After that, done some experiment on the sandbox repository with Core Identity and it was all good. After sorting out some questions related to Core Identity, Mr.Peter asked me to do user creation by using AspNetUsers provided by Core Identity and using the API approach which the project have been using. Beside that, I also need to create a function that can get the token when the user logins using the API approach.

Nevertheless, token is consider a new thing for me as I have no idea how implementing that thing and how it worked in the system. After some time of research and understanding the flow, I understand that the system’s token generator is only for testing after Mr.Peter telling. This lead me to replicate and modify a similar token generator in another file to do the job.

All job was done on Friday as I done the job with fulfilling the minimum requirement to ensure that all function and testing can be achievable. After that, Mr.Peter ask me to add other column that the real system going to implement and it is the end of the week.

In summary, a new thing to learn on the start of the week. It is a week that I learnt about something new for me and might get challenging as I dig through. It is still a fun and exciting week for me as I get to know things I am new to.