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