Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.92 KB

TODO.md

File metadata and controls

65 lines (44 loc) · 1.92 KB

List of things To Do

  • add a test to show that morbo is running

Login

  • add a login page to the app that has Username and Password fields
  • show the changes required to add the route and a template
  • add a test for login success and failure 01_login.t
  • change secret passphrase

Protected Pages

  • add session handling
  • add open pages to a route under open/* - pages that can be seen without logging in
  • add a test 02_open_pages.t
  • add protected pages to a route under protected/*
  • add a test 03_protected.t ..* should redirect to login page on accessing protected/* without logging in ..* like to remember where it came from so that on success it can return to

Logout

  • add a Logout button to attach to a template or layout
  • add a test 04_logout.t to check successful logout and can't access protected/*

HTTPS

  • change route to force login page to run under SSL only ..* don't give away passwords in plain text
  • add test to check that http access to login page redirected to https 05_https.t

LDAP

  • add a sub that uses LDAP for authentication

Suggestions for the future

  • put the instructions in the web pages so that the browser becomes live documentation

Logging

  • add logging for who is logs in and failed authentication

Issues

Config

I found

Load configuration from hash returned by "my_app.conf"

my $config = $self->plugin('Config'); in Login - lib/SessionTutorial.pm. Where should this go?

Hypothetical TODOs

  • compare Redis2 plugin with MojoX::Plugin::AnyCache plugin (on github)
  • look at Task::MojoliciousPlugins::PerlAcademy for modules to include and demonstrate such as YubiVerify
  • my word, there's a YAML plugin for Mojo - why did nobody tell me?
  • Web Auth plugin
  • I18N and I18NUtils plugins
  • PageNavigator and BootstrapPagination
  • SSO with CAS
  • Oliver was going to do Dist::Zilla and deployment