camping-oauth 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/README +3 -0
  2. data/doc/classes/CampingOAuthConsumer.html +145 -0
  3. data/doc/classes/CampingOAuthConsumer.src/M000041.html +19 -0
  4. data/doc/classes/CampingOAuthConsumer/Controllers.html +116 -0
  5. data/doc/classes/CampingOAuthConsumer/Controllers/AccessToken.html +137 -0
  6. data/doc/classes/CampingOAuthConsumer/Controllers/AccessToken.src/M000051.html +32 -0
  7. data/doc/classes/CampingOAuthConsumer/Controllers/AccessTokenAuthorized.html +137 -0
  8. data/doc/classes/CampingOAuthConsumer/Controllers/AccessTokenAuthorized.src/M000050.html +20 -0
  9. data/doc/classes/CampingOAuthConsumer/Controllers/AuthorizeToken.html +137 -0
  10. data/doc/classes/CampingOAuthConsumer/Controllers/AuthorizeToken.src/M000048.html +24 -0
  11. data/doc/classes/CampingOAuthConsumer/Controllers/GetTimeNow.html +137 -0
  12. data/doc/classes/CampingOAuthConsumer/Controllers/GetTimeNow.src/M000049.html +28 -0
  13. data/doc/classes/CampingOAuthConsumer/Controllers/Index.html +137 -0
  14. data/doc/classes/CampingOAuthConsumer/Controllers/Index.src/M000046.html +18 -0
  15. data/doc/classes/CampingOAuthConsumer/Controllers/RequestToken.html +137 -0
  16. data/doc/classes/CampingOAuthConsumer/Controllers/RequestToken.src/M000047.html +24 -0
  17. data/doc/classes/CampingOAuthConsumer/Views.html +176 -0
  18. data/doc/classes/CampingOAuthConsumer/Views.src/M000042.html +42 -0
  19. data/doc/classes/CampingOAuthConsumer/Views.src/M000043.html +41 -0
  20. data/doc/classes/CampingOAuthConsumer/Views.src/M000044.html +18 -0
  21. data/doc/classes/CampingOAuthConsumer/Views.src/M000045.html +19 -0
  22. data/doc/classes/CampingOAuthProvider.html +149 -0
  23. data/doc/classes/CampingOAuthProvider.src/M000052.html +23 -0
  24. data/doc/classes/CampingOAuthProvider/Controllers.html +113 -0
  25. data/doc/classes/CampingOAuthProvider/Controllers/APITimeNow.html +137 -0
  26. data/doc/classes/CampingOAuthProvider/Controllers/APITimeNow.src/M000058.html +23 -0
  27. data/doc/classes/CampingOAuthProvider/Controllers/Index.html +137 -0
  28. data/doc/classes/CampingOAuthProvider/Controllers/Index.src/M000055.html +18 -0
  29. data/doc/classes/CampingOAuthProvider/Controllers/Login.html +152 -0
  30. data/doc/classes/CampingOAuthProvider/Controllers/Login.src/M000056.html +18 -0
  31. data/doc/classes/CampingOAuthProvider/Controllers/Login.src/M000057.html +33 -0
  32. data/doc/classes/CampingOAuthProvider/Helpers.html +112 -0
  33. data/doc/classes/CampingOAuthProvider/Models.html +119 -0
  34. data/doc/classes/CampingOAuthProvider/Models/CreateUserSchema.html +152 -0
  35. data/doc/classes/CampingOAuthProvider/Models/CreateUserSchema.src/M000059.html +26 -0
  36. data/doc/classes/CampingOAuthProvider/Models/CreateUserSchema.src/M000060.html +19 -0
  37. data/doc/classes/CampingOAuthProvider/Models/User.html +111 -0
  38. data/doc/classes/CampingOAuthProvider/Views.html +146 -0
  39. data/doc/classes/CampingOAuthProvider/Views.src/M000053.html +19 -0
  40. data/doc/classes/CampingOAuthProvider/Views.src/M000054.html +27 -0
  41. data/doc/classes/OAuth.html +107 -0
  42. data/doc/classes/OAuth/RequestProxy.html +112 -0
  43. data/doc/classes/OAuth/RequestProxy/Base.html +153 -0
  44. data/doc/classes/OAuth/RequestProxy/Base.src/M000039.html +28 -0
  45. data/doc/classes/OAuth/RequestProxy/Base.src/M000040.html +28 -0
  46. data/doc/classes/OAuth/RequestProxy/RackRequest.html +143 -0
  47. data/doc/classes/OAuth/RequestProxy/RackRequest.src/M000039.html +18 -0
  48. data/doc/classes/OAuthCampingPlugin.html +188 -0
  49. data/doc/classes/OAuthCampingPlugin.src/M000001.html +18 -0
  50. data/doc/classes/OAuthCampingPlugin.src/M000002.html +18 -0
  51. data/doc/classes/OAuthCampingPlugin.src/M000003.html +17 -0
  52. data/doc/classes/OAuthCampingPlugin/Controllers.html +191 -0
  53. data/doc/classes/OAuthCampingPlugin/Controllers.src/M000024.html +18 -0
  54. data/doc/classes/OAuthCampingPlugin/Controllers.src/M000025.html +26 -0
  55. data/doc/classes/OAuthCampingPlugin/Filters.html +161 -0
  56. data/doc/classes/OAuthCampingPlugin/Filters.src/M000034.html +34 -0
  57. data/doc/classes/OAuthCampingPlugin/Helpers.html +283 -0
  58. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000026.html +18 -0
  59. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000027.html +19 -0
  60. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000028.html +20 -0
  61. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000029.html +20 -0
  62. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000030.html +18 -0
  63. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000031.html +18 -0
  64. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000032.html +20 -0
  65. data/doc/classes/OAuthCampingPlugin/Helpers.src/M000033.html +20 -0
  66. data/doc/classes/OAuthCampingPlugin/Models.html +219 -0
  67. data/doc/classes/OAuthCampingPlugin/Models.src/M000035.html +55 -0
  68. data/doc/classes/OAuthCampingPlugin/Models.src/M000036.html +31 -0
  69. data/doc/classes/OAuthCampingPlugin/Models.src/M000037.html +56 -0
  70. data/doc/classes/OAuthCampingPlugin/Models.src/M000038.html +22 -0
  71. data/doc/classes/OAuthCampingPlugin/OAuth.html +407 -0
  72. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000004.html +18 -0
  73. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000005.html +18 -0
  74. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000006.html +20 -0
  75. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000007.html +20 -0
  76. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000008.html +20 -0
  77. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000009.html +24 -0
  78. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000010.html +20 -0
  79. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000011.html +18 -0
  80. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000012.html +19 -0
  81. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000013.html +26 -0
  82. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000014.html +26 -0
  83. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000015.html +33 -0
  84. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000016.html +18 -0
  85. data/doc/classes/OAuthCampingPlugin/OAuth.src/M000017.html +18 -0
  86. data/doc/classes/OAuthCampingPlugin/Views.html +257 -0
  87. data/doc/classes/OAuthCampingPlugin/Views.src/M000018.html +18 -0
  88. data/doc/classes/OAuthCampingPlugin/Views.src/M000019.html +18 -0
  89. data/doc/classes/OAuthCampingPlugin/Views.src/M000020.html +18 -0
  90. data/doc/classes/OAuthCampingPlugin/Views.src/M000021.html +18 -0
  91. data/doc/classes/OAuthCampingPlugin/Views.src/M000022.html +18 -0
  92. data/doc/classes/OAuthCampingPlugin/Views.src/M000023.html +41 -0
  93. data/doc/created.rid +1 -0
  94. data/doc/files/examples/camping-oauth-consumer/camping-oauth-consumer_rb.html +124 -0
  95. data/doc/files/examples/camping-oauth-provider/camping-oauth-provider_rb.html +101 -0
  96. data/doc/files/lib/camping-oauth_rb.html +576 -0
  97. data/doc/fr_class_index.html +56 -0
  98. data/doc/fr_file_index.html +29 -0
  99. data/doc/fr_method_index.html +86 -0
  100. data/doc/index.html +24 -0
  101. data/lib/camping-oauth.rb +1078 -0
  102. metadata +172 -0
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>up (OAuthCampingPlugin::Models)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-oauth.rb, line 697</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">up</span>
15
+ <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Schema</span>.<span class="ruby-identifier">define</span> <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:client_applications</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:name</span>
18
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:url</span>
19
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:support_url</span>
20
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:callback_url</span>
21
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:key</span>, <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">20</span>
22
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:secret</span>, <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">40</span>
23
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:user_id</span>
24
+
25
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
26
+ <span class="ruby-keyword kw">end</span>
27
+
28
+ <span class="ruby-identifier">add_index</span> <span class="ruby-identifier">:client_applications</span>, <span class="ruby-identifier">:key</span>, <span class="ruby-identifier">:unique</span>
29
+
30
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:oauth_tokens</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
31
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:user_id</span>
32
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:type</span>, <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">20</span>
33
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:client_application_id</span>
34
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:token</span>, <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">20</span>
35
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:secret</span>, <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">40</span>
36
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:callback_url</span>
37
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:verifier</span>, <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">20</span>
38
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamp</span> <span class="ruby-identifier">:authorized_at</span>, <span class="ruby-identifier">:invalidated_at</span>
39
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
40
+ <span class="ruby-keyword kw">end</span>
41
+
42
+ <span class="ruby-identifier">add_index</span> <span class="ruby-identifier">:oauth_tokens</span>, <span class="ruby-identifier">:token</span>, <span class="ruby-identifier">:unique</span>
43
+
44
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:oauth_nonces</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
45
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:nonce</span>
46
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:timestamp</span>
47
+
48
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
49
+ <span class="ruby-keyword kw">end</span>
50
+
51
+ <span class="ruby-identifier">add_index</span> <span class="ruby-identifier">:oauth_nonces</span>,[<span class="ruby-identifier">:nonce</span>, <span class="ruby-identifier">:timestamp</span>], <span class="ruby-identifier">:unique</span>
52
+
53
+ <span class="ruby-keyword kw">end</span>
54
+ <span class="ruby-keyword kw">end</span></pre>
55
+ </body>
56
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>down (OAuthCampingPlugin::Models)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-oauth.rb, line 740</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">down</span>
15
+ <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Schema</span>.<span class="ruby-identifier">define</span> <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:client_applications</span>
17
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:oauth_tokens</span>
18
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:oauth_nonces</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,407 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: OAuthCampingPlugin::OAuth</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">OAuthCampingPlugin::OAuth</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/camping-oauth_rb.html">
59
+ lib/camping-oauth.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ <a href="OAuth.html">OAuth</a> module for <a href="OAuth.html">OAuth</a>
78
+ Camping Plugin. The module will be plugged into all controllers either:
79
+ </p>
80
+ <pre>
81
+ - directly such as in the standard common OAuth controllers (e.g. OAuthProvideRequestToken)
82
+ - or indirectly via the include_oauth_controllers of the OAuthCampingPlugin::Controllers module
83
+ </pre>
84
+ <p>
85
+ The module provides accessors, helper, authentication, signing, and
86
+ authorization methods specific to <a href="OAuth.html">OAuth</a>
87
+ </p>
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000008">access_token_class</a>&nbsp;&nbsp;
99
+ <a href="#M000012">authorized?</a>&nbsp;&nbsp;
100
+ <a href="#M000006">client_application_class</a>&nbsp;&nbsp;
101
+ <a href="#M000005">current_client_application</a>&nbsp;&nbsp;
102
+ <a href="#M000004">current_token</a>&nbsp;&nbsp;
103
+ <a href="#M000017">invalid_oauth_response</a>&nbsp;&nbsp;
104
+ <a href="#M000014">login_or_oauth_required</a>&nbsp;&nbsp;
105
+ <a href="#M000011">oauth?</a>&nbsp;&nbsp;
106
+ <a href="#M000009">oauth_header_params</a>&nbsp;&nbsp;
107
+ <a href="#M000013">oauth_required</a>&nbsp;&nbsp;
108
+ <a href="#M000010">oauthenticate</a>&nbsp;&nbsp;
109
+ <a href="#M000007">request_token_class</a>&nbsp;&nbsp;
110
+ <a href="#M000015">verify_oauth_consumer_signature</a>&nbsp;&nbsp;
111
+ <a href="#M000016">verify_oauth_request_token</a>&nbsp;&nbsp;
112
+ </div>
113
+ </div>
114
+
115
+ </div>
116
+
117
+
118
+ <!-- if includes -->
119
+
120
+ <div id="section">
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <!-- if method_list -->
130
+ <div id="methods">
131
+ <h3 class="section-bar">Protected Instance methods</h3>
132
+
133
+ <div id="method-M000008" class="method-detail">
134
+ <a name="M000008"></a>
135
+
136
+ <div class="method-heading">
137
+ <a href="OAuth.src/M000008.html" target="Code" class="method-signature"
138
+ onclick="popupCode('OAuth.src/M000008.html');return false;">
139
+ <span class="method-name">access_token_class</span><span class="method-args">()</span>
140
+ </a>
141
+ </div>
142
+
143
+ <div class="method-description">
144
+ <p>
145
+ Returns the class of the access token
146
+ </p>
147
+ </div>
148
+ </div>
149
+
150
+ <div id="method-M000012" class="method-detail">
151
+ <a name="M000012"></a>
152
+
153
+ <div class="method-heading">
154
+ <a href="OAuth.src/M000012.html" target="Code" class="method-signature"
155
+ onclick="popupCode('OAuth.src/M000012.html');return false;">
156
+ <span class="method-name">authorized?</span><span class="method-args">(</span>
157
+ </a>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+ <p>
162
+ Returns whether or not the current request is authorized
163
+ </p>
164
+ </div>
165
+ </div>
166
+
167
+ <div id="method-M000006" class="method-detail">
168
+ <a name="M000006"></a>
169
+
170
+ <div class="method-heading">
171
+ <a href="OAuth.src/M000006.html" target="Code" class="method-signature"
172
+ onclick="popupCode('OAuth.src/M000006.html');return false;">
173
+ <span class="method-name">client_application_class</span><span class="method-args">()</span>
174
+ </a>
175
+ </div>
176
+
177
+ <div class="method-description">
178
+ <p>
179
+ Returns the class of the client application
180
+ </p>
181
+ </div>
182
+ </div>
183
+
184
+ <div id="method-M000005" class="method-detail">
185
+ <a name="M000005"></a>
186
+
187
+ <div class="method-heading">
188
+ <a href="OAuth.src/M000005.html" target="Code" class="method-signature"
189
+ onclick="popupCode('OAuth.src/M000005.html');return false;">
190
+ <span class="method-name">current_client_application</span><span class="method-args">()</span>
191
+ </a>
192
+ </div>
193
+
194
+ <div class="method-description">
195
+ <p>
196
+ Returns the current client application
197
+ </p>
198
+ </div>
199
+ </div>
200
+
201
+ <div id="method-M000004" class="method-detail">
202
+ <a name="M000004"></a>
203
+
204
+ <div class="method-heading">
205
+ <a href="OAuth.src/M000004.html" target="Code" class="method-signature"
206
+ onclick="popupCode('OAuth.src/M000004.html');return false;">
207
+ <span class="method-name">current_token</span><span class="method-args">()</span>
208
+ </a>
209
+ </div>
210
+
211
+ <div class="method-description">
212
+ <p>
213
+ Returns the current token
214
+ </p>
215
+ </div>
216
+ </div>
217
+
218
+ <div id="method-M000017" class="method-detail">
219
+ <a name="M000017"></a>
220
+
221
+ <div class="method-heading">
222
+ <a href="OAuth.src/M000017.html" target="Code" class="method-signature"
223
+ onclick="popupCode('OAuth.src/M000017.html');return false;">
224
+ <span class="method-name">invalid_oauth_response</span><span class="method-args">(code=401,message=&quot;Invalid OAuth Request&quot;)</span>
225
+ </a>
226
+ </div>
227
+
228
+ <div class="method-description">
229
+ <p>
230
+ Returns a 401 HTTP code if <a href="OAuth.html">OAuth</a> denied the
231
+ request
232
+ </p>
233
+ </div>
234
+ </div>
235
+
236
+ <div id="method-M000014" class="method-detail">
237
+ <a name="M000014"></a>
238
+
239
+ <div class="method-heading">
240
+ <a href="OAuth.src/M000014.html" target="Code" class="method-signature"
241
+ onclick="popupCode('OAuth.src/M000014.html');return false;">
242
+ <span class="method-name">login_or_oauth_required</span><span class="method-args">()</span>
243
+ </a>
244
+ </div>
245
+
246
+ <div class="method-description">
247
+ <p>
248
+ Ensures that the current controller request is authorized either via:
249
+ </p>
250
+ <pre>
251
+ - the application login system
252
+ - or via OAuth
253
+ </pre>
254
+ <p>
255
+ This method is typically used as a precondition in a before_filter.
256
+ Example:
257
+ </p>
258
+ <pre>
259
+ before [:APITimeNow] do
260
+ login_or_oauth_required
261
+ end
262
+ </pre>
263
+ </div>
264
+ </div>
265
+
266
+ <div id="method-M000011" class="method-detail">
267
+ <a name="M000011"></a>
268
+
269
+ <div class="method-heading">
270
+ <a href="OAuth.src/M000011.html" target="Code" class="method-signature"
271
+ onclick="popupCode('OAuth.src/M000011.html');return false;">
272
+ <span class="method-name">oauth?</span><span class="method-args">()</span>
273
+ </a>
274
+ </div>
275
+
276
+ <div class="method-description">
277
+ <p>
278
+ Returns whether or not the current request is authenticated
279
+ </p>
280
+ </div>
281
+ </div>
282
+
283
+ <div id="method-M000009" class="method-detail">
284
+ <a name="M000009"></a>
285
+
286
+ <div class="method-heading">
287
+ <a href="OAuth.src/M000009.html" target="Code" class="method-signature"
288
+ onclick="popupCode('OAuth.src/M000009.html');return false;">
289
+ <span class="method-name">oauth_header_params</span><span class="method-args">()</span>
290
+ </a>
291
+ </div>
292
+
293
+ <div class="method-description">
294
+ <p>
295
+ Parses the HTTP_AUTHORIZATION header for <a href="OAuth.html">OAuth</a>
296
+ parameters and returns the params in a hash.
297
+ </p>
298
+ </div>
299
+ </div>
300
+
301
+ <div id="method-M000013" class="method-detail">
302
+ <a name="M000013"></a>
303
+
304
+ <div class="method-heading">
305
+ <a href="OAuth.src/M000013.html" target="Code" class="method-signature"
306
+ onclick="popupCode('OAuth.src/M000013.html');return false;">
307
+ <span class="method-name">oauth_required</span><span class="method-args">()</span>
308
+ </a>
309
+ </div>
310
+
311
+ <div class="method-description">
312
+ <p>
313
+ Ensures that the current controller request is authorized via <a
314
+ href="OAuth.html">OAuth</a>. This method is typically used as a
315
+ precondition in a before_filter. Example:
316
+ </p>
317
+ <pre>
318
+ before [:APITimeNow] do
319
+ login_or_oauth_required
320
+ end
321
+ </pre>
322
+ </div>
323
+ </div>
324
+
325
+ <div id="method-M000010" class="method-detail">
326
+ <a name="M000010"></a>
327
+
328
+ <div class="method-heading">
329
+ <a href="OAuth.src/M000010.html" target="Code" class="method-signature"
330
+ onclick="popupCode('OAuth.src/M000010.html');return false;">
331
+ <span class="method-name">oauthenticate</span><span class="method-args">()</span>
332
+ </a>
333
+ </div>
334
+
335
+ <div class="method-description">
336
+ <p>
337
+ Authenticates the current request by verifying the signature in the current
338
+ token and ensuring that it is an access token
339
+ </p>
340
+ </div>
341
+ </div>
342
+
343
+ <div id="method-M000007" class="method-detail">
344
+ <a name="M000007"></a>
345
+
346
+ <div class="method-heading">
347
+ <a href="OAuth.src/M000007.html" target="Code" class="method-signature"
348
+ onclick="popupCode('OAuth.src/M000007.html');return false;">
349
+ <span class="method-name">request_token_class</span><span class="method-args">()</span>
350
+ </a>
351
+ </div>
352
+
353
+ <div class="method-description">
354
+ <p>
355
+ Returns the class of the current token
356
+ </p>
357
+ </div>
358
+ </div>
359
+
360
+ <div id="method-M000015" class="method-detail">
361
+ <a name="M000015"></a>
362
+
363
+ <div class="method-heading">
364
+ <a href="OAuth.src/M000015.html" target="Code" class="method-signature"
365
+ onclick="popupCode('OAuth.src/M000015.html');return false;">
366
+ <span class="method-name">verify_oauth_consumer_signature</span><span class="method-args">()</span>
367
+ </a>
368
+ </div>
369
+
370
+ <div class="method-description">
371
+ <p>
372
+ Verifies that a request token request (signature) is valid for a given
373
+ consumer clien application
374
+ </p>
375
+ </div>
376
+ </div>
377
+
378
+ <div id="method-M000016" class="method-detail">
379
+ <a name="M000016"></a>
380
+
381
+ <div class="method-heading">
382
+ <a href="OAuth.src/M000016.html" target="Code" class="method-signature"
383
+ onclick="popupCode('OAuth.src/M000016.html');return false;">
384
+ <span class="method-name">verify_oauth_request_token</span><span class="method-args">()</span>
385
+ </a>
386
+ </div>
387
+
388
+ <div class="method-description">
389
+ <p>
390
+ Verifies that a request token request (signature) is valid
391
+ </p>
392
+ </div>
393
+ </div>
394
+
395
+
396
+ </div>
397
+
398
+
399
+ </div>
400
+
401
+
402
+ <div id="validator-badges">
403
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
404
+ </div>
405
+
406
+ </body>
407
+ </html>