Ticket #321 (closed enhancement: duplicate)
Delegate authentication to Drupal
Reported by: | johnbywater | Owned by: | thejimmyg |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | ckan | Keywords: | |
Cc: | Repository: | ||
Theme: |
Description (last modified by johnbywater) (diff)
When CKAN is included in a Drupal front-end, CKAN edit pages are used in a slave-mode, such that authentication is delegated to the Drupal front-end user model.
The Drupal front-end shall have:
- Login page - fixed location, can authenticate users, on successful authentication sets auth cookie and redirects to HTTP_REFERER.
- Access control resource - fixed location, can authorise users, on receipt of valid auth cookie return message listing account details and permitted actions.
- Access denied page - fixed location, static resource, gently
indicates what has happened, and how to ask for permission.
The CKAN slave edit page shall:
- Try to detect a Drupal session key (passed as cookie or as request param).
- Redirect to Drupal login page if no session key.
- Check authorisation if session key is found.
- Redirect to access denied page if session key not authorised.
- Present the Package edit page.
- Reject unauthenticated or unauthorised edit submissions.
- Snag invalid edit submissions from authenticated and authorised users.
- Respond to valid edit submissions from authenticated and authorised users, by saving the new package state, and redirecting to Package read page in Drupal front-end.
Change History
Note: See
TracTickets for help on using
tickets.