orthodox 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,222 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: TwoFactorAuthentication::ClassMethods
8
+
9
+ &mdash; Orthodox
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "TwoFactorAuthentication::ClassMethods";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../TwoFactorAuthentication.html" title="TwoFactorAuthentication (module)">TwoFactorAuthentication</a></span></span>
41
+ &raquo;
42
+ <span class="title">ClassMethods</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: TwoFactorAuthentication::ClassMethods
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/generators/authentication/templates/controllers/concerns/two_factor_authentication.rb</dd>
82
+ </dl>
83
+
84
+ </div>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <h2>
95
+ Instance Method Summary
96
+ <small><a href="#" class="summary_toggle">collapse</a></small>
97
+ </h2>
98
+
99
+ <ul class="summary">
100
+
101
+ <li class="public ">
102
+ <span class="summary_signature">
103
+
104
+ <a href="#define_tfa_methods-instance_method" title="#define_tfa_methods (instance method)">#<strong>define_tfa_methods</strong>(model_name) &#x21d2; Object </a>
105
+
106
+
107
+
108
+ </span>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <span class="summary_desc"><div class='inline'></div></span>
119
+
120
+ </li>
121
+
122
+
123
+ </ul>
124
+
125
+
126
+
127
+
128
+ <div id="instance_method_details" class="method_details_list">
129
+ <h2>Instance Method Details</h2>
130
+
131
+
132
+ <div class="method_details first">
133
+ <h3 class="signature first" id="define_tfa_methods-instance_method">
134
+
135
+ #<strong>define_tfa_methods</strong>(model_name) &#x21d2; <tt>Object</tt>
136
+
137
+
138
+
139
+
140
+
141
+ </h3><table class="source_code">
142
+ <tr>
143
+ <td>
144
+ <pre class="lines">
145
+
146
+
147
+ 10
148
+ 11
149
+ 12
150
+ 13
151
+ 14
152
+ 15
153
+ 16
154
+ 17
155
+ 18
156
+ 19
157
+ 20
158
+ 21
159
+ 22
160
+ 23
161
+ 24
162
+ 25
163
+ 26
164
+ 27
165
+ 28
166
+ 29
167
+ 30
168
+ 31
169
+ 32
170
+ 33
171
+ 34
172
+ 35
173
+ 36</pre>
174
+ </td>
175
+ <td>
176
+ <pre class="code"><span class="info file"># File 'lib/generators/authentication/templates/controllers/concerns/two_factor_authentication.rb', line 10</span>
177
+
178
+ <span class='kw'>def</span> <span class='id identifier rubyid_define_tfa_methods'>define_tfa_methods</span><span class='lparen'>(</span><span class='id identifier rubyid_model_name'>model_name</span><span class='rparen'>)</span>
179
+ <span class='id identifier rubyid_define_method'>define_method</span> <span class='symbol'>:&quot;authenticate_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_with_tfa</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>do</span>
180
+
181
+ <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:&quot;authenticate_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_without_tfa</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
182
+
183
+ <span class='id identifier rubyid_record'>record</span> <span class='op'>=</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:&quot;current_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
184
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_record'>record</span>
185
+ <span class='kw'>if</span> <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_tfa?'>tfa?</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:&quot;current_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_tfa_authenticated?</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
186
+ <span class='id identifier rubyid_redirect_to'>redirect_to</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:&quot;new_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_pluralize'>pluralize</span><span class='embexpr_end'>}</span><span class='tstring_content'>_tfa_session_url</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span>
187
+ <span class='label'>warn:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>You cannot proceed without authenticating</span><span class='tstring_end'>&quot;</span></span>
188
+ <span class='kw'>end</span>
189
+
190
+ <span class='kw'>end</span>
191
+
192
+ <span class='id identifier rubyid_define_method'>define_method</span> <span class='symbol'>:&quot;current_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_tfa_authenticated?</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>do</span>
193
+ <span class='id identifier rubyid_session'>session</span><span class='lbracket'>[</span><span class='symbol'>:&quot;#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_tfa_authenticated</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span>
194
+ <span class='kw'>end</span>
195
+
196
+ <span class='id identifier rubyid_define_method'>define_method</span> <span class='symbol'>:&quot;#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_tfa_success_redirect_url</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>do</span>
197
+ <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:&quot;#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_pluralize'>pluralize</span><span class='embexpr_end'>}</span><span class='tstring_content'>_dashboard_url</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
198
+ <span class='kw'>end</span>
199
+
200
+ <span class='id identifier rubyid_alias_method'>alias_method</span> <span class='symbol'>:&quot;authenticate_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_without_tfa</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:&quot;authenticate_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
201
+
202
+ <span class='id identifier rubyid_alias_method'>alias_method</span> <span class='symbol'>:&quot;authenticate_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:&quot;authenticate_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_model_name'>model_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_with_tfa</span><span class='tstring_end'>&quot;</span></span>
203
+
204
+ <span class='kw'>end</span></pre>
205
+ </td>
206
+ </tr>
207
+ </table>
208
+ </div>
209
+
210
+ </div>
211
+
212
+ </div>
213
+
214
+ <div id="footer">
215
+ Generated on Thu Aug 13 16:36:42 2020 by
216
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
217
+ 0.9.24 (ruby-2.6.6).
218
+ </div>
219
+
220
+ </div>
221
+ </body>
222
+ </html>
@@ -0,0 +1,121 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: TwoFactorAuthentication
8
+
9
+ &mdash; Orthodox
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "TwoFactorAuthentication";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (T)</a> &raquo;
40
+
41
+
42
+ <span class="title">TwoFactorAuthentication</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: TwoFactorAuthentication
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+ <dl>
73
+ <dt>Extended by:</dt>
74
+ <dd>ActiveSupport::Concern</dd>
75
+ </dl>
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+ <dl>
85
+ <dt>Defined in:</dt>
86
+ <dd>lib/generators/authentication/templates/controllers/concerns/two_factor_authentication.rb</dd>
87
+ </dl>
88
+
89
+ </div>
90
+
91
+ <h2>Defined Under Namespace</h2>
92
+ <p class="children">
93
+
94
+
95
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="TwoFactorAuthentication/ClassMethods.html" title="TwoFactorAuthentication::ClassMethods (module)">ClassMethods</a></span>
96
+
97
+
98
+
99
+
100
+ </p>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ </div>
112
+
113
+ <div id="footer">
114
+ Generated on Thu Aug 13 16:36:42 2020 by
115
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
+ 0.9.24 (ruby-2.6.6).
117
+ </div>
118
+
119
+ </div>
120
+ </body>
121
+ </html>
data/docs/_config.yml ADDED
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-architect
data/docs/_index.html ADDED
@@ -0,0 +1,265 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Orthodox
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
14
+
15
+ <script type="text/javascript">
16
+ pathId = null;
17
+ relpath = '';
18
+ </script>
19
+
20
+
21
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
24
+
25
+
26
+ </head>
27
+ <body>
28
+ <div class="nav_wrap">
29
+ <iframe id="nav" src="class_list.html?1"></iframe>
30
+ <div id="resizer"></div>
31
+ </div>
32
+
33
+ <div id="main" tabindex="-1">
34
+ <div id="header">
35
+ <div id="menu">
36
+
37
+ </div>
38
+
39
+ <div id="search">
40
+
41
+ <a class="full_list_link" id="class_list_link"
42
+ href="class_list.html">
43
+
44
+ <svg width="24" height="24">
45
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
46
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
47
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
48
+ </svg>
49
+ </a>
50
+
51
+ </div>
52
+ <div class="clear"></div>
53
+ </div>
54
+
55
+ <div id="content"><h1 class="noborder title">Orthodox</h1>
56
+ <div id="listing">
57
+ <h1 class="alphaindex">Alphabetic Index</h1>
58
+
59
+ <h2>File Listing</h2>
60
+ <ul id="files" class="index_inline_list">
61
+
62
+
63
+ <li class="r1"><a href="index.html" title="README">README</a></li>
64
+
65
+
66
+ </ul>
67
+
68
+ <div class="clear"></div>
69
+ <h2>Namespace Listing A-Z</h2>
70
+
71
+
72
+
73
+
74
+ <table>
75
+ <tr>
76
+ <td valign='top' width="33%">
77
+
78
+
79
+ <ul id="alpha_A" class="alpha">
80
+ <li class="letter">A</li>
81
+ <ul>
82
+
83
+ <li>
84
+ <span class='object_link'><a href="Authenticateable.html" title="Authenticateable (module)">Authenticateable</a></span>
85
+
86
+ </li>
87
+
88
+ <li>
89
+ <span class='object_link'><a href="AuthenticationGenerator.html" title="AuthenticationGenerator (class)">AuthenticationGenerator</a></span>
90
+
91
+ </li>
92
+
93
+ <li>
94
+ <span class='object_link'><a href="AuthenticationHelpers.html" title="AuthenticationHelpers (module)">AuthenticationHelpers</a></span>
95
+
96
+ </li>
97
+
98
+ </ul>
99
+ </ul>
100
+
101
+
102
+ <ul id="alpha_B" class="alpha">
103
+ <li class="letter">B</li>
104
+ <ul>
105
+
106
+ <li>
107
+ <span class='object_link'><a href="BaseControllerGenerator.html" title="BaseControllerGenerator (class)">BaseControllerGenerator</a></span>
108
+
109
+ </li>
110
+
111
+ </ul>
112
+ </ul>
113
+
114
+
115
+ <ul id="alpha_C" class="alpha">
116
+ <li class="letter">C</li>
117
+ <ul>
118
+
119
+ <li>
120
+ <span class='object_link'><a href="Authenticateable/ClassMethods.html" title="Authenticateable::ClassMethods (module)">ClassMethods</a></span>
121
+
122
+ <small>(Authenticateable)</small>
123
+
124
+ </li>
125
+
126
+ <li>
127
+ <span class='object_link'><a href="TwoFactorAuthentication/ClassMethods.html" title="TwoFactorAuthentication::ClassMethods (module)">ClassMethods</a></span>
128
+
129
+ <small>(TwoFactorAuthentication)</small>
130
+
131
+ </li>
132
+
133
+ <li>
134
+ <span class='object_link'><a href="CoffeescriptGenerator.html" title="CoffeescriptGenerator (class)">CoffeescriptGenerator</a></span>
135
+
136
+ </li>
137
+
138
+ <li>
139
+ <span class='object_link'><a href="ControllerGenerator.html" title="ControllerGenerator (class)">ControllerGenerator</a></span>
140
+
141
+ </li>
142
+
143
+ </ul>
144
+ </ul>
145
+
146
+
147
+ <ul id="alpha_L" class="alpha">
148
+ <li class="letter">L</li>
149
+ <ul>
150
+
151
+ <li>
152
+ <span class='object_link'><a href="LayoutHelperGenerator.html" title="LayoutHelperGenerator (class)">LayoutHelperGenerator</a></span>
153
+
154
+ </li>
155
+
156
+ </ul>
157
+ </ul>
158
+
159
+
160
+ <ul id="alpha_O" class="alpha">
161
+ <li class="letter">O</li>
162
+ <ul>
163
+
164
+ <li>
165
+ <span class='object_link'><a href="Orthodox.html" title="Orthodox (module)">Orthodox</a></span>
166
+
167
+ </li>
168
+
169
+ <li>
170
+ <span class='object_link'><a href="OtpCredentialsHelper.html" title="OtpCredentialsHelper (module)">OtpCredentialsHelper</a></span>
171
+
172
+ </li>
173
+
174
+ <li>
175
+ <span class='object_link'><a href="Otpable.html" title="Otpable (module)">Otpable</a></span>
176
+
177
+ </li>
178
+
179
+ </ul>
180
+ </ul>
181
+
182
+
183
+ <ul id="alpha_P" class="alpha">
184
+ <li class="letter">P</li>
185
+ <ul>
186
+
187
+ <li>
188
+ <span class='object_link'><a href="PasswordResetToken.html" title="PasswordResetToken (class)">PasswordResetToken</a></span>
189
+
190
+ </li>
191
+
192
+ <li>
193
+ <span class='object_link'><a href="PasswordResetable.html" title="PasswordResetable (module)">PasswordResetable</a></span>
194
+
195
+ </li>
196
+
197
+ </ul>
198
+ </ul>
199
+
200
+
201
+ <ul id="alpha_R" class="alpha">
202
+ <li class="letter">R</li>
203
+ <ul>
204
+
205
+ <li>
206
+ <span class='object_link'><a href="Orthodox/Railtie.html" title="Orthodox::Railtie (class)">Railtie</a></span>
207
+
208
+ <small>(Orthodox)</small>
209
+
210
+ </li>
211
+
212
+ </ul>
213
+ </ul>
214
+
215
+
216
+ </td><td valign='top' width="33%">
217
+
218
+
219
+ <ul id="alpha_S" class="alpha">
220
+ <li class="letter">S</li>
221
+ <ul>
222
+
223
+ <li>
224
+ <span class='object_link'><a href="SassGenerator.html" title="SassGenerator (class)">SassGenerator</a></span>
225
+
226
+ </li>
227
+
228
+ </ul>
229
+ </ul>
230
+
231
+
232
+ <ul id="alpha_T" class="alpha">
233
+ <li class="letter">T</li>
234
+ <ul>
235
+
236
+ <li>
237
+ <span class='object_link'><a href="TfaSession.html" title="TfaSession (class)">TfaSession</a></span>
238
+
239
+ </li>
240
+
241
+ <li>
242
+ <span class='object_link'><a href="TwoFactorAuthentication.html" title="TwoFactorAuthentication (module)">TwoFactorAuthentication</a></span>
243
+
244
+ </li>
245
+
246
+ </ul>
247
+ </ul>
248
+
249
+ </td>
250
+ </tr>
251
+ </table>
252
+
253
+ </div>
254
+
255
+ </div>
256
+
257
+ <div id="footer">
258
+ Generated on Thu Aug 13 16:36:42 2020 by
259
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
260
+ 0.9.24 (ruby-2.6.6).
261
+ </div>
262
+
263
+ </div>
264
+ </body>
265
+ </html>