Skip to main content

Posts

Showing posts with the label passport

Advanced journey for passport and typescript

  Release 0.4 - Progressing To understand well for oauth2 and passport, I studied and googled it.  It basically provides authentication service using well known sites like google, facebook and github.  Passportjs provides a number of strategies for OAuth2. Here is the  official site . Since passport uses strategy pattern, most of them are very similar and just change some of urls and which information will be used in the strategy. Of course, I spent a lot of time to understand how it worked and actually there were many things I needed to study such as session, cookie and so on. Also, Typescript is very helpful. I cannot added any property as it is ok on Javascript.  When I added githubId in user, it automatically gave me an error and I needed to figure out where I need to add it. It is not really difficult since I studied OOP a lot but I am pretty sure I will be a fan of it. After I spent some time, I added them successfully and made a PR. However, the CI s...

Start new journey for oauth2

  Release 0.4 For the release 4, I decided to contribute the issue that I failed to contribute since the owner changed language. This is my final goal for this course so I don't want to cotribute just one line code or edit a document. Fortunately, there was an issue when I visited the repository again so I added a comment again to get the issue. The issue is about adding more oauth2 feature, which is new for me even I have not been touched oauth2 on my academic projects at all. So, It will be fun and I am looking forward to what I will face from this issue.

Local Authentication

  Release 0.3.2 I tried to find a test issue to learn how to write test cases but I found another one which was also very interesting to me since it was about authentication set up using JSON web token. When I reviewed telescope, I read a code very carefully so I remembered about passport so I suggested that I would work with passport local and token and the owner agreed with my idea. First, for this I needed to understand passport and how JSON token works. After spending a lot of time, I implemented the part and commit it. The owner was satisfied with work but unfortunately, during the time, about 2 days, he decided to change main language from javascript to typescript due to typeorm. What is typeorm? It will be my next topic. Anyway, he liked my logic so he said he would use it. Ah~, there are many things I need to study. Since my second job was refused and wanted to study or contribute more especially about test case, I started to explore again and finally, I found one. And I le...