Project

General

Profile

Actions

action #1276

closed

DB based user access control (with tests)

Added by ancorgs about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
-
Target version:
Start date:
2014-01-27
Due date:
% Done:

100%

Estimated time:
6.00 h

Description

Add users support to the application. No integration with iChain at this point, just users in the openQA database.

Actions #1

Updated by ancorgs about 10 years ago

  • Priority changed from Urgent to Immediate
Actions #2

Updated by ancorgs about 10 years ago

  • Target version set to Sprint 02
Actions #3

Updated by alarrosa about 10 years ago

  • Assignee set to lnussel
Actions #4

Updated by ancorgs about 10 years ago

  • Assignee changed from lnussel to ancorgs
Actions #5

Updated by alarrosa about 10 years ago

  • Assignee changed from ancorgs to aplanas
Actions #6

Updated by ancorgs about 10 years ago

Looks like this is the most common option for implementing authentication in Mojo. Looks to be in pretty good shape.
http://search.cpan.org/dist/Mojolicious-Plugin-Authentication/

This one is more high-level and looks nice... but it's advised as "pre-alpha prototype" with no updates in one year :-(
https://github.com/koorchik/Mojolicious-Plugin-UserManager

Some more info about implementing authentication:
http://mojocasts.com/e3

Actions #7

Updated by aplanas about 10 years ago

Go to openID instead of iChain first

Actions #8

Updated by ancorgs about 10 years ago

This plugin looks like a perfect choice for our problem https://github.com/hayajo/Mojolicious-Plugin-Web-Auth Looks active and reasonably documented, and there is an example application in github https://github.com/dokechin/webauth

In case we decide to write something from scratch or go for something simpler, here we are some properly documented code that can be used (as it or as inspiration):
https://github.com/pgraemer/Mojolicious-Plugin-HttpBasicAuth
https://github.com/sshaw/Mojolicious-Plugin-DigestAuth
https://github.com/marcusramberg/Mojolicious-Plugin-OAuth2

Actions #9

Updated by aplanas about 10 years ago

  • Status changed from New to In Progress
Actions #10

Updated by aplanas about 10 years ago

  • Status changed from In Progress to Resolved

To test the openID integration:

1.- Go to /login
2.- Use the suse openID server: https://www.suse.com/openid/user/
3.- Go to the test page /secret/test

The white list is in the Login.auth method.

Actions #11

Updated by ancorgs about 10 years ago

Testing the new openID login. Committing small fixes and a temporary way of displaying the logged user.

Actions #12

Updated by ancorgs about 10 years ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF