auth0-ruby 0.9

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.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.bundle/config +2 -0
  3. data/.gitignore +8 -0
  4. data/.rspec +2 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +68 -0
  7. data/README.md +27 -0
  8. data/Rakefile +9 -0
  9. data/auth0.gemspec +29 -0
  10. data/doc/Auth0.html +153 -0
  11. data/doc/Auth0/Api.html +128 -0
  12. data/doc/Auth0/Api/AuthenticationEndpoints.html +596 -0
  13. data/doc/Auth0/Api/V1.html +192 -0
  14. data/doc/Auth0/Api/V1/Clients.html +440 -0
  15. data/doc/Auth0/Api/V1/Connections.html +506 -0
  16. data/doc/Auth0/Api/V1/Logs.html +366 -0
  17. data/doc/Auth0/Api/V1/Rules.html +439 -0
  18. data/doc/Auth0/Api/V1/Users.html +1617 -0
  19. data/doc/Auth0/BadRequest.html +142 -0
  20. data/doc/Auth0/Client.html +236 -0
  21. data/doc/Auth0/Exception.html +140 -0
  22. data/doc/Auth0/Mixins.html +225 -0
  23. data/doc/Auth0/Mixins/HTTPartyProxy.html +121 -0
  24. data/doc/Auth0/Mixins/Initializer.html +298 -0
  25. data/doc/Auth0/NotFound.html +143 -0
  26. data/doc/Auth0/ServerError.html +142 -0
  27. data/doc/Auth0/Unauthorized.html +143 -0
  28. data/doc/Auth0/Unsupported.html +142 -0
  29. data/doc/Auth0/UserIdIsBlank.html +143 -0
  30. data/doc/Auth0Client.html +235 -0
  31. data/doc/_index.html +347 -0
  32. data/doc/class_list.html +58 -0
  33. data/doc/css/common.css +1 -0
  34. data/doc/css/full_list.css +57 -0
  35. data/doc/css/style.css +339 -0
  36. data/doc/file.README.html +103 -0
  37. data/doc/file_list.html +60 -0
  38. data/doc/frames.html +26 -0
  39. data/doc/index.html +103 -0
  40. data/doc/js/app.js +219 -0
  41. data/doc/js/full_list.js +181 -0
  42. data/doc/js/jquery.js +4 -0
  43. data/doc/method_list.html +327 -0
  44. data/doc/top-level-namespace.html +114 -0
  45. data/lib/auth0.rb +8 -0
  46. data/lib/auth0/api/authentication_endpoints.rb +71 -0
  47. data/lib/auth0/api/v1.rb +19 -0
  48. data/lib/auth0/api/v1/clients.rb +48 -0
  49. data/lib/auth0/api/v1/connections.rb +51 -0
  50. data/lib/auth0/api/v1/logs.rb +41 -0
  51. data/lib/auth0/api/v1/rules.rb +44 -0
  52. data/lib/auth0/api/v1/users.rb +163 -0
  53. data/lib/auth0/client.rb +7 -0
  54. data/lib/auth0/exception.rb +18 -0
  55. data/lib/auth0/mixins.rb +13 -0
  56. data/lib/auth0/mixins/httparty_proxy.rb +29 -0
  57. data/lib/auth0/mixins/initializer.rb +25 -0
  58. data/lib/auth0/version.rb +4 -0
  59. data/lib/auth0_client.rb +3 -0
  60. data/spec/lib/auth0/api/authentication_endpoints_spec.rb +56 -0
  61. data/spec/lib/auth0/api/v1/clients_spec.rb +62 -0
  62. data/spec/lib/auth0/api/v1/connections_spec.rb +62 -0
  63. data/spec/lib/auth0/api/v1/logs_spec.rb +46 -0
  64. data/spec/lib/auth0/api/v1/rules_spec.rb +40 -0
  65. data/spec/lib/auth0/api/v1/users_spec.rb +215 -0
  66. data/spec/lib/auth0/client_spec.rb +19 -0
  67. data/spec/lib/auth0/mixins/httparty_proxy_spec.rb +60 -0
  68. data/spec/lib/auth0_client_spec.rb +8 -0
  69. data/spec/spec_helper.rb +18 -0
  70. data/spec/support/dummy_class.rb +7 -0
  71. data/spec/support/dummy_class_for_proxy.rb +4 -0
  72. data/spec/support/stub_response.rb +2 -0
  73. metadata +253 -0
@@ -0,0 +1,596 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Auth0::Api::AuthenticationEndpoints
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!Auth0/Api/AuthenticationEndpoints.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (A)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../Auth0.html" title="Auth0 (module)">Auth0</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Api.html" title="Auth0::Api (module)">Api</a></span></span>
36
+ &raquo;
37
+ <span class="title">AuthenticationEndpoints</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: Auth0::Api::AuthenticationEndpoints
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ <dt class="r1">Included in:</dt>
81
+ <dd class="r1"><span class='object_link'><a href="../Mixins.html" title="Auth0::Mixins (module)">Mixins</a></span></dd>
82
+
83
+
84
+
85
+ <dt class="r2 last">Defined in:</dt>
86
+ <dd class="r2 last">lib/auth0/api/authentication_endpoints.rb</dd>
87
+
88
+ </dl>
89
+ <div class="clear"></div>
90
+
91
+ <h2>Overview</h2><div class="docstring">
92
+ <div class="discussion">
93
+
94
+ <p><a href="https://auth0.com/docs/auth-api" target="_parent" title="https://auth0.com/docs/auth-api">https://auth0.com/docs/auth-api</a> Describing functionality of auth0
95
+ authentication endpoints</p>
96
+
97
+
98
+ </div>
99
+ </div>
100
+ <div class="tags">
101
+
102
+
103
+ </div>
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ <h2>
112
+ Instance Method Summary
113
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
114
+ </h2>
115
+
116
+ <ul class="summary">
117
+
118
+ <li class="public ">
119
+ <span class="summary_signature">
120
+
121
+ <a href="#change_password-instance_method" title="#change_password (instance method)">- (Object) <strong>change_password</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;) </a>
122
+
123
+
124
+
125
+ </span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <span class="summary_desc"><div class='inline'>
136
+ <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password">https://auth0.com/docs/auth-api#!#post–dbconnections-change_password</a>.</p>
137
+ </div></span>
138
+
139
+ </li>
140
+
141
+
142
+ <li class="public ">
143
+ <span class="summary_signature">
144
+
145
+ <a href="#delegation-instance_method" title="#delegation (instance method)">- (Object) <strong>delegation</strong>(id_token, target, scope = &quot;open_id&quot;) </a>
146
+
147
+
148
+
149
+ </span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <span class="summary_desc"><div class='inline'>
160
+ <p><a href="https://auth0.com/docs/auth-api#!#post–delegation" target="_parent" title="https://auth0.com/docs/auth-api#!#post–delegation">https://auth0.com/docs/auth-api#!#post–delegation</a>.</p>
161
+ </div></span>
162
+
163
+ </li>
164
+
165
+
166
+ <li class="public ">
167
+ <span class="summary_signature">
168
+
169
+ <a href="#login-instance_method" title="#login (instance method)">- (Object) <strong>login</strong>(username, password, scope = &quot;openid&quot;, id_token = nil, connection_name = &quot;Username-Password-Authentication&quot;) </a>
170
+
171
+
172
+
173
+ </span>
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <span class="summary_desc"><div class='inline'>
184
+ <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-ro" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-ro">https://auth0.com/docs/auth-api#!#post–oauth-ro</a>.</p>
185
+ </div></span>
186
+
187
+ </li>
188
+
189
+
190
+ <li class="public ">
191
+ <span class="summary_signature">
192
+
193
+ <a href="#obtain_access_token-instance_method" title="#obtain_access_token (instance method)">- (Object) <strong>obtain_access_token</strong> </a>
194
+
195
+
196
+
197
+ </span>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+ <span class="summary_desc"><div class='inline'>
208
+ <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-access_token" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-access_token">https://auth0.com/docs/auth-api#!#post–oauth-access_token</a>.</p>
209
+ </div></span>
210
+
211
+ </li>
212
+
213
+
214
+ <li class="public ">
215
+ <span class="summary_signature">
216
+
217
+ <a href="#signup-instance_method" title="#signup (instance method)">- (Object) <strong>signup</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;) </a>
218
+
219
+
220
+
221
+ </span>
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+ <span class="summary_desc"><div class='inline'>
232
+ <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-signup" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-signup">https://auth0.com/docs/auth-api#!#post–dbconnections-signup</a>.</p>
233
+ </div></span>
234
+
235
+ </li>
236
+
237
+
238
+ <li class="public ">
239
+ <span class="summary_signature">
240
+
241
+ <a href="#token_info-instance_method" title="#token_info (instance method)">- (Object) <strong>token_info</strong>(id_token) </a>
242
+
243
+
244
+
245
+ </span>
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+ <span class="summary_desc"><div class='inline'>
256
+ <p><a href="https://auth0.com/docs/auth-api#!#post–tokeninfo" target="_parent" title="https://auth0.com/docs/auth-api#!#post–tokeninfo">https://auth0.com/docs/auth-api#!#post–tokeninfo</a>.</p>
257
+ </div></span>
258
+
259
+ </li>
260
+
261
+
262
+ </ul>
263
+
264
+
265
+
266
+
267
+ <div id="instance_method_details" class="method_details_list">
268
+ <h2>Instance Method Details</h2>
269
+
270
+
271
+ <div class="method_details first">
272
+ <h3 class="signature first" id="change_password-instance_method">
273
+
274
+ - (<tt>Object</tt>) <strong>change_password</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;)
275
+
276
+
277
+
278
+
279
+
280
+ </h3><div class="docstring">
281
+ <div class="discussion">
282
+
283
+ <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password">https://auth0.com/docs/auth-api#!#post–dbconnections-change_password</a></p>
284
+
285
+
286
+ </div>
287
+ </div>
288
+ <div class="tags">
289
+
290
+
291
+ </div><table class="source_code">
292
+ <tr>
293
+ <td>
294
+ <pre class="lines">
295
+
296
+
297
+ 54
298
+ 55
299
+ 56
300
+ 57
301
+ 58
302
+ 59
303
+ 60
304
+ 61
305
+ 62</pre>
306
+ </td>
307
+ <td>
308
+ <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 54</span>
309
+
310
+ <span class='kw'>def</span> <span class='id identifier rubyid_change_password'>change_password</span><span class='lparen'>(</span><span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_connection_name'>connection_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Username-Password-Authentication</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
311
+ <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
312
+ <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
313
+ <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span>
314
+ <span class='label'>connection:</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='comma'>,</span>
315
+ <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span>
316
+ <span class='rbrace'>}</span>
317
+ <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/dbconnections/change_password</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
318
+ <span class='kw'>end</span></pre>
319
+ </td>
320
+ </tr>
321
+ </table>
322
+ </div>
323
+
324
+ <div class="method_details ">
325
+ <h3 class="signature " id="delegation-instance_method">
326
+
327
+ - (<tt>Object</tt>) <strong>delegation</strong>(id_token, target, scope = &quot;open_id&quot;)
328
+
329
+
330
+
331
+
332
+
333
+ </h3><div class="docstring">
334
+ <div class="discussion">
335
+
336
+ <p><a href="https://auth0.com/docs/auth-api#!#post–delegation" target="_parent" title="https://auth0.com/docs/auth-api#!#post–delegation">https://auth0.com/docs/auth-api#!#post–delegation</a></p>
337
+
338
+
339
+ </div>
340
+ </div>
341
+ <div class="tags">
342
+
343
+
344
+ </div><table class="source_code">
345
+ <tr>
346
+ <td>
347
+ <pre class="lines">
348
+
349
+
350
+ 17
351
+ 18
352
+ 19
353
+ 20
354
+ 21
355
+ 22
356
+ 23
357
+ 24
358
+ 25
359
+ 26</pre>
360
+ </td>
361
+ <td>
362
+ <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 17</span>
363
+
364
+ <span class='kw'>def</span> <span class='id identifier rubyid_delegation'>delegation</span><span class='lparen'>(</span><span class='id identifier rubyid_id_token'>id_token</span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>open_id</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
365
+ <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
366
+ <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
367
+ <span class='label'>grant_type:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>urn:ietf:params:oauth:grant-type:jwt-bearer</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
368
+ <span class='label'>id_token:</span> <span class='id identifier rubyid_id_token'>id_token</span><span class='comma'>,</span>
369
+ <span class='label'>target:</span> <span class='id identifier rubyid_target'>target</span><span class='comma'>,</span>
370
+ <span class='label'>scope:</span> <span class='id identifier rubyid_scope'>scope</span>
371
+ <span class='rbrace'>}</span>
372
+ <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/delegation</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
373
+ <span class='kw'>end</span></pre>
374
+ </td>
375
+ </tr>
376
+ </table>
377
+ </div>
378
+
379
+ <div class="method_details ">
380
+ <h3 class="signature " id="login-instance_method">
381
+
382
+ - (<tt>Object</tt>) <strong>login</strong>(username, password, scope = &quot;openid&quot;, id_token = nil, connection_name = &quot;Username-Password-Authentication&quot;)
383
+
384
+
385
+
386
+
387
+
388
+ </h3><div class="docstring">
389
+ <div class="discussion">
390
+
391
+ <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-ro" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-ro">https://auth0.com/docs/auth-api#!#post–oauth-ro</a></p>
392
+
393
+
394
+ </div>
395
+ </div>
396
+ <div class="tags">
397
+
398
+
399
+ </div><table class="source_code">
400
+ <tr>
401
+ <td>
402
+ <pre class="lines">
403
+
404
+
405
+ 29
406
+ 30
407
+ 31
408
+ 32
409
+ 33
410
+ 34
411
+ 35
412
+ 36
413
+ 37
414
+ 38
415
+ 39
416
+ 40</pre>
417
+ </td>
418
+ <td>
419
+ <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 29</span>
420
+
421
+ <span class='kw'>def</span> <span class='id identifier rubyid_login'>login</span><span class='lparen'>(</span><span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>openid</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_id_token'>id_token</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Username-Password-Authentication</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
422
+ <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
423
+ <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
424
+ <span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span>
425
+ <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span>
426
+ <span class='label'>scope:</span> <span class='id identifier rubyid_scope'>scope</span><span class='comma'>,</span>
427
+ <span class='label'>connection:</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='comma'>,</span>
428
+ <span class='label'>grand_type:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>password</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
429
+ <span class='label'>id_token:</span> <span class='id identifier rubyid_id_token'>id_token</span>
430
+ <span class='rbrace'>}</span>
431
+ <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/oauth/ro</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
432
+ <span class='kw'>end</span></pre>
433
+ </td>
434
+ </tr>
435
+ </table>
436
+ </div>
437
+
438
+ <div class="method_details ">
439
+ <h3 class="signature " id="obtain_access_token-instance_method">
440
+
441
+ - (<tt>Object</tt>) <strong>obtain_access_token</strong>
442
+
443
+
444
+
445
+
446
+
447
+ </h3><div class="docstring">
448
+ <div class="discussion">
449
+
450
+ <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-access_token" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-access_token">https://auth0.com/docs/auth-api#!#post–oauth-access_token</a></p>
451
+
452
+
453
+ </div>
454
+ </div>
455
+ <div class="tags">
456
+
457
+
458
+ </div><table class="source_code">
459
+ <tr>
460
+ <td>
461
+ <pre class="lines">
462
+
463
+
464
+ 7
465
+ 8
466
+ 9
467
+ 10
468
+ 11
469
+ 12
470
+ 13
471
+ 14</pre>
472
+ </td>
473
+ <td>
474
+ <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 7</span>
475
+
476
+ <span class='kw'>def</span> <span class='id identifier rubyid_obtain_access_token'>obtain_access_token</span>
477
+ <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
478
+ <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
479
+ <span class='label'>client_secret:</span> <span class='ivar'>@client_secret</span><span class='comma'>,</span>
480
+ <span class='label'>grant_type:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>client_credentials</span><span class='tstring_end'>&#39;</span></span>
481
+ <span class='rbrace'>}</span>
482
+ <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/oauth/token</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>access_token</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
483
+ <span class='kw'>end</span></pre>
484
+ </td>
485
+ </tr>
486
+ </table>
487
+ </div>
488
+
489
+ <div class="method_details ">
490
+ <h3 class="signature " id="signup-instance_method">
491
+
492
+ - (<tt>Object</tt>) <strong>signup</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;)
493
+
494
+
495
+
496
+
497
+
498
+ </h3><div class="docstring">
499
+ <div class="discussion">
500
+
501
+ <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-signup" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-signup">https://auth0.com/docs/auth-api#!#post–dbconnections-signup</a></p>
502
+
503
+
504
+ </div>
505
+ </div>
506
+ <div class="tags">
507
+
508
+
509
+ </div><table class="source_code">
510
+ <tr>
511
+ <td>
512
+ <pre class="lines">
513
+
514
+
515
+ 43
516
+ 44
517
+ 45
518
+ 46
519
+ 47
520
+ 48
521
+ 49
522
+ 50
523
+ 51</pre>
524
+ </td>
525
+ <td>
526
+ <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 43</span>
527
+
528
+ <span class='kw'>def</span> <span class='id identifier rubyid_signup'>signup</span><span class='lparen'>(</span><span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Username-Password-Authentication</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
529
+ <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
530
+ <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
531
+ <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span>
532
+ <span class='label'>connection:</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='comma'>,</span>
533
+ <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span>
534
+ <span class='rbrace'>}</span>
535
+ <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/dbconnections/signup</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
536
+ <span class='kw'>end</span></pre>
537
+ </td>
538
+ </tr>
539
+ </table>
540
+ </div>
541
+
542
+ <div class="method_details ">
543
+ <h3 class="signature " id="token_info-instance_method">
544
+
545
+ - (<tt>Object</tt>) <strong>token_info</strong>(id_token)
546
+
547
+
548
+
549
+
550
+
551
+ </h3><div class="docstring">
552
+ <div class="discussion">
553
+
554
+ <p><a href="https://auth0.com/docs/auth-api#!#post–tokeninfo" target="_parent" title="https://auth0.com/docs/auth-api#!#post–tokeninfo">https://auth0.com/docs/auth-api#!#post–tokeninfo</a></p>
555
+
556
+
557
+ </div>
558
+ </div>
559
+ <div class="tags">
560
+
561
+
562
+ </div><table class="source_code">
563
+ <tr>
564
+ <td>
565
+ <pre class="lines">
566
+
567
+
568
+ 65
569
+ 66
570
+ 67
571
+ 68</pre>
572
+ </td>
573
+ <td>
574
+ <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 65</span>
575
+
576
+ <span class='kw'>def</span> <span class='id identifier rubyid_token_info'>token_info</span><span class='lparen'>(</span><span class='id identifier rubyid_id_token'>id_token</span><span class='rparen'>)</span>
577
+ <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>id_token:</span> <span class='id identifier rubyid_id_token'>id_token</span><span class='rbrace'>}</span>
578
+ <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/tokeninfo</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
579
+ <span class='kw'>end</span></pre>
580
+ </td>
581
+ </tr>
582
+ </table>
583
+ </div>
584
+
585
+ </div>
586
+
587
+ </div>
588
+
589
+ <div id="footer">
590
+ Generated on Mon Jan 26 03:18:46 2015 by
591
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
592
+ 0.8.7.6 (ruby-2.0.0).
593
+ </div>
594
+
595
+ </body>
596
+ </html>