Monday, May 2, 2011

OJT DAY 8 :)

May 02, 2011 is my 8th day in OJT.. As  usual I started at  1:00 pm and it ends at 8:00 p.m. What we did today was sir Chris discussed about the OAuth.php to used in our next task, but unfortunately we are not able to join the discussion, since our schedule for our OJT is in the afternoon, and the lecture/discussion of the task for the PHP people in this day was discussed in the morning. Sir Chris discussed about our next task which is to use the OAuth.php and place it in the CodeIgniter Library and used its function. 

Using Twitter oAuth:

OAuth is an open protocol for secure user authentication across APIs. It allows users to gain limited access to websites by using their Twitter credentials. It's a very sound method of user authentication, and doesn't take too much work to get going. Twitter oAuth is used by hundreds of third-party Twitter clients and mashups.

How oAuth works:

Getting used to how Twitter oAuth works takes a little time.
When a user comes to your login page, you send a GET request to Twitter for a set of request codes. These request codes are used to verify the user on the Twitter website.
The user then goes through to Twitter to either allow or deny your application access to their account. If they allow the application access, they will be taken back to your application. The URL they get sent to will have an oAuth token appended to the end. This is used in the next step.
Back at your application, you then send another GET request for some access codes from Twitter. These access codes are used to verify that the user has come directly from Twitter, and has not tried to spoof an oAuth token in their web browser.

In this day, we create an Oauth and to do this we download first the OAuth.php and place it in CodeIgniter  library. And sir Chris said that he check our code by tomorrow and if one got the code correctly "librehon dw nya ug lunch" - thats what exactly what sir Chris said to us. At that time I was thinking that this task would be harder than our last task. hehe :).. 

That's it for today.. hopefully I could make the task correctly..not just for free lunch but also to learned something new..  hehe..good luck..!!!

No comments:

Post a Comment