1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Auth::Login</title>
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
<link rel="stylesheet" title="style" type="text/css" href="../../style.css" media="all" >
11
<p class="backlinktop"><b><a name="___top" href="../../index.html" accesskey="1" title="All Documents"><<</a></b></p>
12
<h1>Bugzilla::Auth::Login</h1>
13
<div class='indexgroup'>
14
<ul class='indexList indexList1'>
15
<li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
16
<li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
17
<li class='indexItem indexItem1'><a href='#LOGIN_METHODS'>LOGIN METHODS</a>
18
<li class='indexItem indexItem1'><a href='#INFO_METHODS'>INFO METHODS</a>
22
<h1><a class='u' href='#___top' title='click to go to top of document'
26
<p>Bugzilla::Auth::Login - Gets username/password data from the user.</p>
28
<h1><a class='u' href='#___top' title='click to go to top of document'
32
<p>Bugzilla::Auth::Login is used to get information that uniquely identifies a user and allows us to authorize their Bugzilla access.</p>
34
<p>It is mostly an abstract class,
35
requiring subclasses to implement most methods.</p>
37
<p>Note that callers outside of the <code class="code">Bugzilla::Auth</code> package should never create this object directly.
38
Just create a <code class="code">Bugzilla::Auth</code> object and call <code class="code">login</code> on it.</p>
40
<h1><a class='u' href='#___top' title='click to go to top of document'
42
>LOGIN METHODS</a></h1>
44
<p>These are methods that have to do with getting the actual login data from the user or handling a login somehow.</p>
46
<p>These methods are abstract -- they MUST be implemented by a subclass.</p>
49
<dt><a name="get_login_info()"
50
><code class="code">get_login_info()</code></a></dt>
53
<p>Description: Gets a username/password from the user,
54
or some other information that uniquely identifies them.
55
Params: None Returns: A <code class="code">$login_data</code> hashref.
56
(See <a href="../../Bugzilla/Auth.html" class="podlinkpod"
57
>Bugzilla::Auth</a> for details.) The hashref MUST contain: <code class="code">user_id</code> *or* <code class="code">username</code> If this is a login method that requires verification,
58
the hashref MUST contain <code class="code">password</code>.
59
The hashref MAY contain <code class="code">realname</code> and <code class="code">extern_id</code>.</p>
61
<dt><a name="fail_nodata()"
62
><code class="code">fail_nodata()</code></a></dt>
65
<p>Description: This function is called when Bugzilla doesn't get a username/password and the login type is <code class="code">LOGIN_REQUIRED</code> (See <a href="../../Bugzilla/Auth.html" class="podlinkpod"
66
>Bugzilla::Auth</a> for a description of <code class="code">LOGIN_REQUIRED</code>).
68
this handles <code class="code">AUTH_NODATA</code> in that situation.</p>
70
<pre class="code"> This function MUST stop CGI execution when it is complete.
71
That is, it must call C<exit> or C<ThrowUserError> or some
74
Returns: Never Returns.</pre>
78
<h1><a class='u' href='#___top' title='click to go to top of document'
80
>INFO METHODS</a></h1>
82
<p>These are methods that describe the capabilities of this <code class="code">Bugzilla::Auth::Login</code> object. These are all no-parameter methods that return either <code class="code">true</code> or <code class="code">false</code>.</p>
85
<dt><a name="can_logout"
86
><code class="code">can_logout</code></a></dt>
89
<p>Whether or not users can log out if they logged in using this object. Defaults to <code class="code">true</code>.</p>
91
<dt><a name="can_login"
92
><code class="code">can_login</code></a></dt>
95
<p>Whether or not users can log in through the web interface using this object. Defaults to <code class="code">true</code>.</p>
97
<dt><a name="requires_persistence"
98
><code class="code">requires_persistence</code></a></dt>
101
<p>Whether or not we should send the user a cookie if they logged in with this method. Defaults to <code class="code">true</code>.</p>
103
<dt><a name="requires_verification"
104
><code class="code">requires_verification</code></a></dt>
107
<p>Whether or not we should check the username/password that we got from this login method. Defaults to <code class="code">true</code>.</p>
109
<dt><a name="user_can_create_account"
110
><code class="code">user_can_create_account</code></a></dt>
113
<p>Whether or not users can create accounts, if this login method is currently being used by the system. Defaults to <code class="code">false</code>.</p>
116
<p class="backlinkbottom"><b><a name="___bottom" href="../../index.html" title="All Documents"><<</a></b></p>