﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
933	Plugins should have a way to redirect to the login page	Steve		"I am writing a plugin that requires that the user be logged in before accessing the media home page. However, because I am hooking to the ""media_home_context,"" I am only able to modify the context, which, as far as I can tell cannot cause a redirect. The only way that I can see to do this redirect currently is to raise an exception that is handled by forwarding the user to the login page, but I could not find an appropriate existing exception.

A 401 error may be appropriate, but according to [http://tools.ietf.org/html/rfc7235#section-3.1 RFC 7235], the server must send a WWW-Authenticate Header if it responds with a 401 error, which does not make sense since MediaGoblin uses a login page.

Please forgive me if this functionality already exists and I missed it."	enhancement	new	minor		programming		plugin, login		
