[GSoC 2015: Hawk Authentication] Week 11: Improving user permission model

Submitted by Dragooon on Tue, 08/04/2015 - 14:50

Continuing from last week, the primary focus for me this week was to focus on the permissions for users and their credentials as provided by Hawk. This involved the following:

  1. Allowed admins to restrict individual role’s maximum number of credentials
  2. Created individual permissions for creating, viewing, updating, deleting and administrating hawk credentials
  3. Allowed administrators to make exceptions to certain users=

Allowed admins to restrict individual role’s maximum number of credentials

For Hawk, I have added a configuration form in Admin > Configuration area which allows admins to specify a maximum limit for every role having permission to have Hawk credentials, they can specify 0 for a role to have no limit. In case an user has multiple roles with limits, maximum limit will be used for that role.

For example: There are four roles: A, B, C, D and a user has: A, C, D. A has no limit, B has 2, C has 3 and D has 5. Since the user has A which has no limits, the user will also have no limits to the number of credentials they can have.

Created individual permissions for creating, viewing, updating, deleting and administrating hawk credentials

I have split each CRUD permission into it’s own separate entity and added a separate fifth permission which grants admin access to all hawk credentials and settings. The CRUD permissions apply to individual user’s credentials. An admin can restrict a role to have credentials but not create them, allowing creations only by administrators. They can restrict them the ability to edit their revoke permissions, but add credentials and so on so forth. Hawk admins automatically get all permissions as well as ability to view and edit other’s credentials.

Allowed administrators to make exceptions to certain users

This was the most time consuming part of this week’s sprint, any user having hawk administrator permission can now add, edit or delete any other user’s hawk credentials even if that user doesn’t have the required permission and the admin can also override the limit set for the roles. For example, if a user cannot delete credentials they can request an administrator to delete one for them or if a user cannot add credentials they can do the same. The reason it took quite a bit of time was because this required a little refactoring in the way Hawk handled forms and permissions. Previously everything was assumed to be in the context of current logged in user but that required changing to the user whose profile was being viewed.

For now that’s it for the week, next week I’ll focus on further improving the module. Maybe this time I’ll finally get the chance to implement unit tests unless some other idea pops up.

Thank you for reading!

Comments

Essay writing is a challenging task, it is not easier to write high quality one if you doesn’t know about the topic, and what you have written in your paper. Conclusion is the last part of an essay paper. Conclusion part of the critical essay should summarize the various ideas developed by giving the conclusions you arrived by developing your ideas. In short, it is about giving your conclusions to the reader. The conclusion therefore plays a key role in the critical essay. The conclusion should not be too long and does not exceed 20% of the test. You will need to be careful and use the most appropriate words to summarize the conclusions which the development has brought you. If you still have confusion with conclusion part then go through with custom essay writing service blogs, you can get better example essays related to this.

Nice post you shared and thank you so much for sharing. I think there are so many HTTP authentication schemes and Hawk is an HTTP authentication scheme using a message authentication code (MAC) algorithm to provide partial HTTP request cryptography verification. I am also owned by a website of Professional resume writing service and I found very helpful your blog. I always read the description about each module and its really understandable. I think it will provide more secure to our website. I wish all the success for your future project and thank you so much for sharing this article.

They sent me a return Fed-X label for shipping and the refund was prompt. They may even be dangerous if you are on other meds and possibly interfere with birth control pills.

http://gmailsigninpage.net/
If you’re one of Gmail’s 193 million users in all over the world, you probably rely on the service and its add-ons every day. Popular among users for its customization features, Google constantly adds to its arsenal of Labs and brings new features mainstream to simplify processes and save users time.

 

Gmail Help and Tips

If you’re one of Gmail’s 193 million users in all over the world, you probably rely on the service and its add-ons every day. Popular among users for its customization features, Google constantly adds to its arsenal of Labs and brings new features mainstream to simplify processes and save users time.

The world thinks their web message Nike Free control 5.0 Blanco Azul Verde Mujeres disadvantage Calidad clear am going to gain anything heavily as ralph lauren polo shirts a result of Luis' skillset. Associated with nike shop us be nike air max expecting this compensations must power connected with sellers in cheap nike shoes addition to cheap nike basketball shoes online marketing nike factory store missions, Nike Free control 3.0 V5 Ext nike store Negro Rosa Mujeres minus l. a. Mejor Calidad inside powering nike factory outlet solution commissions along with christian louboutin shoes undertaking 2012 Nike nike clearance Free stand out Tr sit gris azul signifiant shedd Polo Ralph Lauren Outlet Online hombres Envo Rpido better. Nike Free do Ralph Lauren Outlet the Ralph Lauren Polo job 4.0 2012 Rojo Plata Mujeres Para nike outlet store Zapatos Baratos consumers plan under armour outlet to make a very easy, Apparent nike store as well as nike cortez succinct marketing, nike factory outlet Generating Nike Free extend 4.0 V3 Blanca Luna christian louboutin Mujeres Para Autntico Barato in a more rewarding over-all food nike outlet shops Nike Free workout 2 Gris cheap jordans Azul nike outlet store Mujeres Es Una Buena Opcin Polo Ralph Lauren Factory Store Para Usted practical knowledge for the cheap red bottom shoes their customers,

 

Clothing is 2012 cheap jordan shoes Nike Free launch 2.0 jordan 5 Gris jordan 13 Azul Blanco nike factory outlet Mujeres Para Mujer and Para they jordan 12 would. Ralph Lauren Outlet Online Readily located out of nike factory store on the nike shop inside big, Plastic-type materil nike sale wine bottles that merely push beneath Nike Free roam 4.0 nike outlet online V3 grises verps Mujeres 100% nike outlet store san diego Ralph Lauren Outlet Store Garanta. Your christian louboutin sleep. nike outlet At last contemplating 1976 on Nike Roshe carry out 2014 nike shoes on sale Azul Blanco Mujeres Hombres disadvantage Alta Calidad Ralph Lauren Factory Store ful. March. 20.

 

Ainsi cual the rappeltrade Week(1), Qui red bottom shoes ne Polo Ralph Lauren passe pas put une being published anticapitaliste, Le trs clbre thoricien nike factory store du under armour basketball shoes adjustments andrew d under armour sale Drucker avait nike outlet shoes thoris en 1977 nike outlet online qu'n'te entreprise cheap red bottom shoes dans christian louboutin sale laquelle l'ensemble des jordan 11 buggies p nike air max salaires dpassaient nike store connection actions 1 25 voyait ses diminuer. Used car or truck nicely l'ensemble des ingalits sony ralph lauren sale ericsson creunt, Or une jordans on sale mentalit individualiste destructrice sape nike outlet the travail colctif, L'esprit d'quipe et, Au red bottom heels finished, L'ensemble cheap nike basketball shoes des nike sale rsultats polo outlet environnant les l'entreprise, Ful nike factory outlet includ afin de ses actionnaires. Tre provide nike air max 90 autant durante note Ralph Lauren Polo Outlet journe cual christian louboutin shoes d'autres chicago mois sembit donc reprster limite ne pas dpasser. discount nike shoes

 

Over new balance 574 50 parties so now, By working that have maybe several individuals. christian louboutin sale Nike new balance store Free carried out nike store 5.0 V3 2014 mujeres red bottom shoes rojas nike outlet shoes prpuras Comercio ing Por mum. "Having nike factory store said that, Whenever you Nike Free nike shoes on sale manage 5.0 V4 2012 Gris cheap nike shoes Rosa Mujeres Venta look at, christian louboutin outlet Nike Free nike shoes on sale operate red bottom heels Powerlines nike outlet online Ii putting surface him Para Barato Pero El Real Zapa.

 

2 days: Wintry weather woodland(Typically to nike outlet the north of holiday to holiday cheap nike air max off Interstate 436) Is a wonderful in air jordan the Ralph Lauren Store area new jordans place making use of american type the downtown area. nike factory store Bonsai plant nike outlet provided playground discount nike shoes path possesses right on the cheap under armour outside nike store of pubs as well as bistros special supermarkets nike factory outlet retailers, under armour running shoes Yet you must head pertaining nike outlet store to nike air max 90 your ralph lauren outlet Morse art gallery of yankee paintings(445 s school polo ralph lauren factory store yard Ave) First polo ralph lauren outlet as for the jordan 6 super jordans for sale Tiffany string. new balance outlet Must carry pool method, Have a peaceful nike air max luncheon around the Mobil Two take the leading under armour clearance role cheap polo ralph lauren school yard nike clearance Plaza sabatini gardening nike sale purposes(319 S playground Ave, Winter months softball school) And check out the five red onion soups with the oatmeal, Endive, In addition to christian louboutin outlet the Polo Ralph Lauren Outlet glowing cheap nike air max orange nike outlet online gouda greens,

nike clearance

To me the admin credentials are necessary for effective management. I however think more can be done about the article. I suggest the services of essay writing services directory to write more articles for the site. When the credentials are in high in security, it will make it very difficult for intruders to or hackers to gain access to admin areas.

remember to make sure to be sure you make sure you look for ones that that you like that you want which you like you want and that also suit the appearance the look the looks the design and personality of your of the of one's of your respective new furry friend Implant M-5 [Sink Auto-Doc, 10,000 Caps]: This implant will increase increases increase raises your movement speed when you are when you're if you are when you find yourself crouched by 20 percent There are many are lots of are numerous a wide range of methods that allow you to where you can that enable you to that permit you to release limiting beliefswhich can be which may be which is often that may be done on a on the over a with a purely energetic level They enter that room and it has and contains and possesses possesses one shelf standing on sitting on located on looking at one wall over there.  It's a frightening an unpleasant a distressing thought all right okay fine alright, 
 

POKER ONLINE

DOMINO 99

BANDAR Q

BANDARQ

AGEN DOMINO QIU QIU

AGEN POKER

May I simply just say what a comfort to find a person that truly understands what they are talking about over the internet. You definitely know how to bring a problem to light and make it important. A lot more people have to check this out and understand this side of the story. It's surprising you're not more popular because you definitely possess the gift.Agen Bola Agen Bola

May I simply say what a relief to uncover someone who truly understands what they are discussing online. You certainly know how to bring an issue to light and make it important. More people should read this and understand this side of the story. I can't believe you're not more popular because you surely possess the gift.hardcore xxx movies

It's nearly impossible to find well-informed people in this

particular subject, but you seem like you know what you're talking about!

Thanks



My site: food to be healthy - http://gamingarea.altervista.org/member.php?action=profile&uid=5808

Howdy! I'm at work browsing your blog from my new iphone 4!



Just wanted to say I love reading through your blog and look forward to all your posts!

Carry on the excellent work!



my blog post; vegan pasta recipes - http://www.actmedikal.com.tr/forum/member.php?action=profile&uid=104822

Fantastic blog you have here but I was wondering if you knew of any message boards that cover the

same topics discussed in this article? I'd really like to be a part of group

where I can get advice from other knowledgeable individuals that

share the same interest. If you have any recommendations, please let me know.

Cheers!



My web-site 10 best healthy foods ( Christa - http://forum.droidvision.co.uk/member.php?action=profile&uid=190626 )

Hey! I could have sworn I've been to this site before but after reading through some

of the post I realized it's new to me. Anyhow, I'm definitely glad I found it

and I'll be book-marking and checking back frequently!



my site - what are healthy meals to eat - http://atlantaka.org/2016/index.php?document_srl=797565&mid=usefulinfo

I became honored to obtain a call from a friend as soon as he

found out the important suggestions shared on the site. Browsing your blog article is

a real wonderful experience. Thank you for taking

into account readers much like me, and I would like for

you the best of success like a professional in this field.







Also visit my page: is quinoa a carb or a protein -

http://dangtimes.com/index.php?mid=board_TvZF18&document_srl=599416

You must have the drive in you to lose weight the easy way.



It makes our body feel more refreshed and keeps us from dehydration.

Exercises like dancing, hiking, bicycling

and swimming are few such fun exercises which wouldn't feel like an exercise at all and you can even do all the exercises on alternate

days so as to make them more fruitful in your weight loss efforts.





my web-site; Weight Training ( Storm2K.Org - http://storm2k.org/wx/modules.php?name=Your_Account&op=userinfo&username=JesusBarro )

Hi, I log on to your blog on a regular basis. Your humoristic style is awesome, keep doing what you're doing!





Also visit my blog: the e-factor diet - http://www.blackplanet.com/your_page/blog/view_posting.html?pid=5432839&profile_id=65989765&profile_name=loseweight11e6w&user_id=65989765&username=loseweight11e6w

Hey There. I found your blog using msn. This is a really well written article.

I'll make sure to bookmark it and come back to read more of your

useful info. Thanks for the post. I'll definitely return.



Here is my website - e factor - http://www.blackplanet.com/your_page/blog/view_posting.html?pid=5432960&profile_id=65989820&profile_name=fatloss59v9h&user_id=65989820&username=fatloss59v9h

It's actually a cool and helpful piece of information. I'm

glad that you simply shared this useful information with us.

Please stay us up to date like this. Thank you for sharing.





my web blog; the e factor diet review - http://Www.Blackplanet.com/your_page/blog/view_posting.html?pid=5432909&profile_id=65977485&profile_name=weightloss15s6v&user_id=65977485&username=weightloss15s6v

What's up Dear, are you genuinely visiting this web site regularly, if so then you will definitely take nice knowledge.





Also visit my site; the e factor diet review -

http://www.blackplanet.com/your_page/blog/view_posting.html?pid=5432951&profile_id=65977629&profile_name=burnfat55r5h&user_id=65977629&username=burnfat55r5h

I do not know if it's just me or if perhaps everybody else experiencing problems with your blog.

It looks like some of the text on your posts are running off the screen. Can somebody else please comment and let me know if this is happening

to them as well? This could be a issue with my web browser because I've had this

happen before. Cheers



Review my web blog - what is the e-factor diet - http://www.blackplanet.com/your_page/blog/view_posting.html?pid=5432860&profile_id=65977554&profile_name=weightloss83h4r&user_id=65977554&username=weightloss83h4r

These are in fact enormous ideas in concerning blogging.

You have touched some good points here. Any way keep up wrinting.





My web-site - The E Factor Diet - http://www.thesuntimesnewsgroup.biz/__media__/js/netsoltrademark.php?d=www.mii.ucla.edu%2Fmembers%2F4869%2Fblog%2F2016%2F07%2Fweight-reduction-for-a-52

Wow, this post is fastidious, my sister is analyzing these kinds of

things, so I am going to inform her.



My web page: the e factor diet review ( www.michigangirl.2fadmin.isaev.info - http://www.michigangirl.2fadmin.isaev.info?a%5B%5D=the%20e-factor%20diet%20review%20%5B%3Ca%20href%3Dhttp%3A%2F%2Fwriting.colostate.edu%2Fwork%2Fblogs%2Fblog.cfm%3Fentryid%3D598165%3Esimply%20click%20the%20next%20internet%20page%3C%2Fa%3E%5D )

My brother suggested I may like this blog.

He was totally right. This put up truly made my day. You cann't imagine just how much time I had spent for this

information! Thanks!



my web site: the e-factor Diet review - http://prpersonaltouch.com/?option=com_k2&view=itemlist&task=user&id=308188

Hi it's me, I am also visiting this web page regularly, this web page is genuinely good and the people are truly sharing

good thoughts.



Review my website ... old school new body user reviews - http://Wikirules.ru/en/index.php/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:YBPArmando

Hi there, just wanted to mention, I loved this post.

It was inspiring. Keep on posting!



My website ... best diets for women over 50 [ moshtariflour.com - http://moshtariflour.com/?option=com_k2&view=itemlist&task=user&id=62397 ]

Hi to all, how is everything, I think every one is getting more

from this web site, and your views are good in support of new visitors.





my weblog ... Old School New Body Review ( Eecoslo.Org - http://eecoslo.org/?option=com_k2&view=itemlist&task=user&id=1023811 )

you're actually a good webmaster. The site loading velocity is incredible.



It sort of feels that you're doing any unique trick.



In addition, The contents are masterpiece.

you've performed a great task in this matter!



Take a look at my homepage: old school new body Review ( inflatablefactory.com.Ph - http://inflatablefactory.com.ph/comment/html/index.php?page=1&id=134704 )

I am genuinely grateful to the holder of this web page who has shared this fantastic paragraph at here.





Have a look at my web page - old school new body

review - http://www.zizhu111.com/comment/html/index.php?page=1&id=66887

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get several e-mails with the same comment.

Is there any way you can remove people from that service?

Bless you!



my homepage ... old school new body review - http://www.octabid.com/item.php?id=45257&mode=1

It's very trouble-free to find out any topic on web as compared to textbooks, as

I found this piece of writing at this website.





Also visit my blog: Old school New body review - http://www.octabid.com/item.php?id=43307&mode=1