[GSoC 2015: Hawk Authentication] Week 14: Concluding Summer of Code

Submitted by Dragooon on Tue, 08/25/2015 - 17:07

This would be my last weekly update as far as Google Summer of Code 2015 is concerned. The long road is coming to an end as the season closes on Friday, 28th August 2015. This week I tackled a bug in core of Drupal which I discussed in my last week’s update.

Fixing WWW-Authenticate

This issue is #2553531 on the Drupal bug tracker. Previously when a user was accessing an area which required them to be logged in without logging in, Drupal would call authentication providers for a “challenge”. This challenge allows Basic Auth to specify it’s WWW-Authenticate header and send a HTTP 401 unauthorised error telling the user that they need to be logged in and can use Basic Auth as a means to log-in. This was good, as basic was the only protocol which would communicate via WWW-Authenticate until Hawk came along.

WWW-Authenticate can have multiple values, a server sending WWW-Authenticate: Hawk, Basic for example is saying that the client can use hawk or basic auth protocol. This wasn’t possible in the current code base as Drupal did not allow multiple Auth providers to specify the challenge. I modified the code to allow multiple auth providers to send their challenge which gets compiled by the authentication provider manager into an exception. Previously, the auth provider would send an exception itself which is why multiple auth providers could not specify their own challenge.

This fix is still to be accepted into Drupal core, although I hope it would get accepted soon.

Concluding Summer of Code

This would probably be the last coding I will be doing during Summer of Code, but it’s not last related to Drupal or my project as I plan to continue it’s development after GSoC as well and hopefully I get to stick around Drupal for a long time.

I had a lot of fun during the summer, and I got to learn a lot of new things as well as got introduced to Drupal and it’s community. I worked on implementing a new protocol within PHP, developing a general purpose library which can be used by anyone willing to use the protocol with PHP and implemented the protocol as a Drupal module. All things that I have never done in the past, and the things I struggled with at times but ultimately learned them and managed to succeed to the best of my abilities. I also improved my understanding of concepts such as Dependency Injection, unit testing, composer, authentication and authorization as well as security concepts related to them, encryption, hashing and general Drupal architecture and development.

For students participating in the future, don't hesitate to ask around the Drupal community via the forums or IRC if you get stuck doing something as they are very helpful. Drupal is a complicated beast and there are a lot of people apart form your mentor who are willing to help, it would also be faster at times when your mentor might not be available. I took a lot of help from the community during my project and the community really helped around.

I’m glad to have taken part in this year’s summer of code and I will remember this experience forever. A big thanks to my mentor Jingsheng Wang (skyred) and the Drupal community for their support as well as Avantika Agarwal for proofreading my blog and documents related to Summer of Code. I will continue with what I started this summer of code and try to learn and share as many things as I can.

Thank you!

Comments

Howdy I am so grateful I found your web site, I really found you by mistake, while I was researching on Google for something else, Nonetheless I am here now and would just like to say cheers for a marvelous post and a

all round interesting blog (I also love the theme/design),

I don’t have time to go through it all at the moment but I have saved it and also added in your RSS feeds, so when I have time I will
n be back to read a lot more, Please do keep up the awesome
n b
n
n Also visit my webpage the f factor diet

Can I just say what a relief to discover a person that really understands what they're discussing on the net.

You actually know how to bring a problem to light and make it important.

A lot more people should check this out and understand this side of your story.

I can't believe you are not more popular given that you surely

possess the gift.



Here is my web page - what is the e-factor diet

Hello! This is kind of off topic but I need some advice from an established blog.

Is it very hard to set up your own blog?

I'm not very techincal but I can figure things out pretty quick.

I'm thinking about creating my own but I'm not sure where to begin. Do you

have any tips or suggestions? With thanks



Stop by my site :: the e-factor diet review

wonderful publish, very informative. I'm wondering why the other specialists of this sector

do not notice this. You must continue your

writing. I'm confident, you've a great readers' base already!





Take a look at my website ... the e factor diet review (http://mmk.mn)

We go to all ends of the country to find the best travel insurance deals, so you don’t have to. Our aim is to bring all of the best travel insurance policies in Ireland together to allow our customers to make a well informed decision and get the best value for their money. Holiday Insurance Ireland Backpacker travel insurance Multi trip travel insurance ireland Single trip travel insurance ireland

The National Women's Health Information Center notes that while the

calorie needs of women that are pregnant

vary, most women that are pregnant need about 300 extra calories a day during the last six months of their pregnancy.





Feel free to visit my web site: best diet for women over 50 (Alejandro)

Fantastic items from you, man. I've have in mind

your stuff previous to and you're simply too great.



I really like what you have obtained here, certainly like what you're

stating and the best way through which you are saying it.

You are making it entertaining and you continue to take care of

to keep it smart. I can't wait to read far more from you.



This is really a tremendous website.



Also visit my website; what is the e factor diet