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,435 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<title>Method List</title>
|
19
|
+
<base id="base_target" target="_parent" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<script type="text/javascript" charset="utf-8">
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
28
|
+
document.getElementById('base_target').target = 'main';
|
29
|
+
document.body.className = 'frames';
|
30
|
+
}
|
31
|
+
</script>
|
32
|
+
<div id="content">
|
33
|
+
<h1 id="full_list_header">Method List</h1>
|
34
|
+
<div id="nav">
|
35
|
+
|
36
|
+
<span><a target="_self" href="class_list.html">
|
37
|
+
Classes
|
38
|
+
</a></span>
|
39
|
+
|
40
|
+
<span><a target="_self" href="method_list.html">
|
41
|
+
Methods
|
42
|
+
</a></span>
|
43
|
+
|
44
|
+
<span><a target="_self" href="file_list.html">
|
45
|
+
Files
|
46
|
+
</a></span>
|
47
|
+
|
48
|
+
</div>
|
49
|
+
<div id="search">Search: <input type="text" /></div>
|
50
|
+
|
51
|
+
<ul id="full_list" class="method">
|
52
|
+
|
53
|
+
|
54
|
+
<li class="r1 ">
|
55
|
+
<span class='object_link'><a href="Auth0/Api/V2/Stats.html#active_users-instance_method" title="Auth0::Api::V2::Stats#active_users (method)">#active_users</a></span>
|
56
|
+
<small>Auth0::Api::V2::Stats</small>
|
57
|
+
</li>
|
58
|
+
|
59
|
+
|
60
|
+
<li class="r2 ">
|
61
|
+
<span class='object_link'><a href="Auth0/Api/V2/Blacklists.html#add_token_to_blacklist-instance_method" title="Auth0::Api::V2::Blacklists#add_token_to_blacklist (method)">#add_token_to_blacklist</a></span>
|
62
|
+
<small>Auth0::Api::V2::Blacklists</small>
|
63
|
+
</li>
|
64
|
+
|
65
|
+
|
66
|
+
<li class="r1 ">
|
67
|
+
<span class='object_link'><a href="Auth0/Api/V2/Blacklists.html#blacklisted_tokens-instance_method" title="Auth0::Api::V2::Blacklists#blacklisted_tokens (method)">#blacklisted_tokens</a></span>
|
68
|
+
<small>Auth0::Api::V2::Blacklists</small>
|
69
|
+
</li>
|
70
|
+
|
71
|
+
|
72
|
+
<li class="r2 ">
|
73
|
+
<span class='object_link'><a href="Auth0/Api/AuthenticationEndpoints.html#change_password-instance_method" title="Auth0::Api::AuthenticationEndpoints#change_password (method)">#change_password</a></span>
|
74
|
+
<small>Auth0::Api::AuthenticationEndpoints</small>
|
75
|
+
</li>
|
76
|
+
|
77
|
+
|
78
|
+
<li class="r1 ">
|
79
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#change_password_ticket-instance_method" title="Auth0::Api::V1::Users#change_password_ticket (method)">#change_password_ticket</a></span>
|
80
|
+
<small>Auth0::Api::V1::Users</small>
|
81
|
+
</li>
|
82
|
+
|
83
|
+
|
84
|
+
<li class="r2 ">
|
85
|
+
<span class='object_link'><a href="Auth0/Api/V2/Clients.html#client-instance_method" title="Auth0::Api::V2::Clients#client (method)">#client</a></span>
|
86
|
+
<small>Auth0::Api::V2::Clients</small>
|
87
|
+
</li>
|
88
|
+
|
89
|
+
|
90
|
+
<li class="r1 ">
|
91
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#client_users-instance_method" title="Auth0::Api::V1::Users#client_users (method)">#client_users</a></span>
|
92
|
+
<small>Auth0::Api::V1::Users</small>
|
93
|
+
</li>
|
94
|
+
|
95
|
+
|
96
|
+
<li class="r2 ">
|
97
|
+
<span class='object_link'><a href="Auth0/Api/V2/Clients.html#clients-instance_method" title="Auth0::Api::V2::Clients#clients (method)">#clients</a></span>
|
98
|
+
<small>Auth0::Api::V2::Clients</small>
|
99
|
+
</li>
|
100
|
+
|
101
|
+
|
102
|
+
<li class="r1 ">
|
103
|
+
<span class='object_link'><a href="Auth0/Api/V1/Clients.html#clients-instance_method" title="Auth0::Api::V1::Clients#clients (method)">#clients</a></span>
|
104
|
+
<small>Auth0::Api::V1::Clients</small>
|
105
|
+
</li>
|
106
|
+
|
107
|
+
|
108
|
+
<li class="r2 ">
|
109
|
+
<span class='object_link'><a href="Auth0/Api/V1/Connections.html#connection-instance_method" title="Auth0::Api::V1::Connections#connection (method)">#connection</a></span>
|
110
|
+
<small>Auth0::Api::V1::Connections</small>
|
111
|
+
</li>
|
112
|
+
|
113
|
+
|
114
|
+
<li class="r1 ">
|
115
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#connection_users-instance_method" title="Auth0::Api::V1::Users#connection_users (method)">#connection_users</a></span>
|
116
|
+
<small>Auth0::Api::V1::Users</small>
|
117
|
+
</li>
|
118
|
+
|
119
|
+
|
120
|
+
<li class="r2 ">
|
121
|
+
<span class='object_link'><a href="Auth0/Api/V1/Connections.html#connections-instance_method" title="Auth0::Api::V1::Connections#connections (method)">#connections</a></span>
|
122
|
+
<small>Auth0::Api::V1::Connections</small>
|
123
|
+
</li>
|
124
|
+
|
125
|
+
|
126
|
+
<li class="r1 ">
|
127
|
+
<span class='object_link'><a href="Auth0/Api/V2/Clients.html#create_client-instance_method" title="Auth0::Api::V2::Clients#create_client (method)">#create_client</a></span>
|
128
|
+
<small>Auth0::Api::V2::Clients</small>
|
129
|
+
</li>
|
130
|
+
|
131
|
+
|
132
|
+
<li class="r2 ">
|
133
|
+
<span class='object_link'><a href="Auth0/Api/V1/Clients.html#create_client-instance_method" title="Auth0::Api::V1::Clients#create_client (method)">#create_client</a></span>
|
134
|
+
<small>Auth0::Api::V1::Clients</small>
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
138
|
+
<li class="r1 ">
|
139
|
+
<span class='object_link'><a href="Auth0/Api/V1/Connections.html#create_connection-instance_method" title="Auth0::Api::V1::Connections#create_connection (method)">#create_connection</a></span>
|
140
|
+
<small>Auth0::Api::V1::Connections</small>
|
141
|
+
</li>
|
142
|
+
|
143
|
+
|
144
|
+
<li class="r2 ">
|
145
|
+
<span class='object_link'><a href="Auth0/Api/V2/Jobs.html#create_job-instance_method" title="Auth0::Api::V2::Jobs#create_job (method)">#create_job</a></span>
|
146
|
+
<small>Auth0::Api::V2::Jobs</small>
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="r1 ">
|
151
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#create_public_key-instance_method" title="Auth0::Api::V1::Users#create_public_key (method)">#create_public_key</a></span>
|
152
|
+
<small>Auth0::Api::V1::Users</small>
|
153
|
+
</li>
|
154
|
+
|
155
|
+
|
156
|
+
<li class="r2 ">
|
157
|
+
<span class='object_link'><a href="Auth0/Api/V1/Rules.html#create_rule-instance_method" title="Auth0::Api::V1::Rules#create_rule (method)">#create_rule</a></span>
|
158
|
+
<small>Auth0::Api::V1::Rules</small>
|
159
|
+
</li>
|
160
|
+
|
161
|
+
|
162
|
+
<li class="r1 ">
|
163
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#create_user-instance_method" title="Auth0::Api::V2::Users#create_user (method)">#create_user</a></span>
|
164
|
+
<small>Auth0::Api::V2::Users</small>
|
165
|
+
</li>
|
166
|
+
|
167
|
+
|
168
|
+
<li class="r2 ">
|
169
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#create_user-instance_method" title="Auth0::Api::V1::Users#create_user (method)">#create_user</a></span>
|
170
|
+
<small>Auth0::Api::V1::Users</small>
|
171
|
+
</li>
|
172
|
+
|
173
|
+
|
174
|
+
<li class="r1 ">
|
175
|
+
<span class='object_link'><a href="Auth0/Api/V2/Stats.html#daily_stats-instance_method" title="Auth0::Api::V2::Stats#daily_stats (method)">#daily_stats</a></span>
|
176
|
+
<small>Auth0::Api::V2::Stats</small>
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="r2 ">
|
181
|
+
<span class='object_link'><a href="Auth0/Api/AuthenticationEndpoints.html#delegation-instance_method" title="Auth0::Api::AuthenticationEndpoints#delegation (method)">#delegation</a></span>
|
182
|
+
<small>Auth0::Api::AuthenticationEndpoints</small>
|
183
|
+
</li>
|
184
|
+
|
185
|
+
|
186
|
+
<li class="r1 ">
|
187
|
+
<span class='object_link'><a href="Auth0/Api/V2/Clients.html#delete_client-instance_method" title="Auth0::Api::V2::Clients#delete_client (method)">#delete_client</a></span>
|
188
|
+
<small>Auth0::Api::V2::Clients</small>
|
189
|
+
</li>
|
190
|
+
|
191
|
+
|
192
|
+
<li class="r2 ">
|
193
|
+
<span class='object_link'><a href="Auth0/Api/V1/Connections.html#delete_connection-instance_method" title="Auth0::Api::V1::Connections#delete_connection (method)">#delete_connection</a></span>
|
194
|
+
<small>Auth0::Api::V1::Connections</small>
|
195
|
+
</li>
|
196
|
+
|
197
|
+
|
198
|
+
<li class="r1 ">
|
199
|
+
<span class='object_link'><a href="Auth0/Api/V1/Rules.html#delete_rule-instance_method" title="Auth0::Api::V1::Rules#delete_rule (method)">#delete_rule</a></span>
|
200
|
+
<small>Auth0::Api::V1::Rules</small>
|
201
|
+
</li>
|
202
|
+
|
203
|
+
|
204
|
+
<li class="r2 ">
|
205
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#delete_user-instance_method" title="Auth0::Api::V1::Users#delete_user (method)">#delete_user</a></span>
|
206
|
+
<small>Auth0::Api::V1::Users</small>
|
207
|
+
</li>
|
208
|
+
|
209
|
+
|
210
|
+
<li class="r1 ">
|
211
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#delete_user-instance_method" title="Auth0::Api::V2::Users#delete_user (method)">#delete_user</a></span>
|
212
|
+
<small>Auth0::Api::V2::Users</small>
|
213
|
+
</li>
|
214
|
+
|
215
|
+
|
216
|
+
<li class="r2 ">
|
217
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#delete_user_provider-instance_method" title="Auth0::Api::V2::Users#delete_user_provider (method)">#delete_user_provider</a></span>
|
218
|
+
<small>Auth0::Api::V2::Users</small>
|
219
|
+
</li>
|
220
|
+
|
221
|
+
|
222
|
+
<li class="r1 ">
|
223
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#delete_users-instance_method" title="Auth0::Api::V1::Users#delete_users (method)">#delete_users</a></span>
|
224
|
+
<small>Auth0::Api::V1::Users</small>
|
225
|
+
</li>
|
226
|
+
|
227
|
+
|
228
|
+
<li class="r2 ">
|
229
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#delete_users-instance_method" title="Auth0::Api::V2::Users#delete_users (method)">#delete_users</a></span>
|
230
|
+
<small>Auth0::Api::V2::Users</small>
|
231
|
+
</li>
|
232
|
+
|
233
|
+
|
234
|
+
<li class="r1 ">
|
235
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#enterpriseconnections_users-instance_method" title="Auth0::Api::V1::Users#enterpriseconnections_users (method)">#enterpriseconnections_users</a></span>
|
236
|
+
<small>Auth0::Api::V1::Users</small>
|
237
|
+
</li>
|
238
|
+
|
239
|
+
|
240
|
+
<li class="r2 ">
|
241
|
+
<span class='object_link'><a href="Auth0/Api/V2/Jobs.html#get_job-instance_method" title="Auth0::Api::V2::Jobs#get_job (method)">#get_job</a></span>
|
242
|
+
<small>Auth0::Api::V2::Jobs</small>
|
243
|
+
</li>
|
244
|
+
|
245
|
+
|
246
|
+
<li class="r1 ">
|
247
|
+
<span class='object_link'><a href="Auth0/Mixins/Initializer.html#included-class_method" title="Auth0::Mixins::Initializer.included (method)">included</a></span>
|
248
|
+
<small>Auth0::Mixins::Initializer</small>
|
249
|
+
</li>
|
250
|
+
|
251
|
+
|
252
|
+
<li class="r2 ">
|
253
|
+
<span class='object_link'><a href="Auth0/Mixins/Initializer.html#initialize-instance_method" title="Auth0::Mixins::Initializer#initialize (method)">#initialize</a></span>
|
254
|
+
<small>Auth0::Mixins::Initializer</small>
|
255
|
+
</li>
|
256
|
+
|
257
|
+
|
258
|
+
<li class="r1 ">
|
259
|
+
<span class='object_link'><a href="Auth0/Api/V1/Logs.html#log-instance_method" title="Auth0::Api::V1::Logs#log (method)">#log</a></span>
|
260
|
+
<small>Auth0::Api::V1::Logs</small>
|
261
|
+
</li>
|
262
|
+
|
263
|
+
|
264
|
+
<li class="r2 ">
|
265
|
+
<span class='object_link'><a href="Auth0/Api/AuthenticationEndpoints.html#login-instance_method" title="Auth0::Api::AuthenticationEndpoints#login (method)">#login</a></span>
|
266
|
+
<small>Auth0::Api::AuthenticationEndpoints</small>
|
267
|
+
</li>
|
268
|
+
|
269
|
+
|
270
|
+
<li class="r1 ">
|
271
|
+
<span class='object_link'><a href="Auth0/Api/V1/Logs.html#logs-instance_method" title="Auth0::Api::V1::Logs#logs (method)">#logs</a></span>
|
272
|
+
<small>Auth0::Api::V1::Logs</small>
|
273
|
+
</li>
|
274
|
+
|
275
|
+
|
276
|
+
<li class="r2 ">
|
277
|
+
<span class='object_link'><a href="Auth0/Api/AuthenticationEndpoints.html#obtain_access_token-instance_method" title="Auth0::Api::AuthenticationEndpoints#obtain_access_token (method)">#obtain_access_token</a></span>
|
278
|
+
<small>Auth0::Api::AuthenticationEndpoints</small>
|
279
|
+
</li>
|
280
|
+
|
281
|
+
|
282
|
+
<li class="r1 ">
|
283
|
+
<span class='object_link'><a href="Auth0/Api/V1/Clients.html#patch_client-instance_method" title="Auth0::Api::V1::Clients#patch_client (method)">#patch_client</a></span>
|
284
|
+
<small>Auth0::Api::V1::Clients</small>
|
285
|
+
</li>
|
286
|
+
|
287
|
+
|
288
|
+
<li class="r2 ">
|
289
|
+
<span class='object_link'><a href="Auth0/Api/V2/Clients.html#patch_client-instance_method" title="Auth0::Api::V2::Clients#patch_client (method)">#patch_client</a></span>
|
290
|
+
<small>Auth0::Api::V2::Clients</small>
|
291
|
+
</li>
|
292
|
+
|
293
|
+
|
294
|
+
<li class="r1 ">
|
295
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#patch_user-instance_method" title="Auth0::Api::V2::Users#patch_user (method)">#patch_user</a></span>
|
296
|
+
<small>Auth0::Api::V2::Users</small>
|
297
|
+
</li>
|
298
|
+
|
299
|
+
|
300
|
+
<li class="r2 ">
|
301
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#patch_user_metadata-instance_method" title="Auth0::Api::V1::Users#patch_user_metadata (method)">#patch_user_metadata</a></span>
|
302
|
+
<small>Auth0::Api::V1::Users</small>
|
303
|
+
</li>
|
304
|
+
|
305
|
+
|
306
|
+
<li class="r1 ">
|
307
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#revoke_user_device_public_key-instance_method" title="Auth0::Api::V1::Users#revoke_user_device_public_key (method)">#revoke_user_device_public_key</a></span>
|
308
|
+
<small>Auth0::Api::V1::Users</small>
|
309
|
+
</li>
|
310
|
+
|
311
|
+
|
312
|
+
<li class="r2 ">
|
313
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#revoke_user_refresh_token-instance_method" title="Auth0::Api::V1::Users#revoke_user_refresh_token (method)">#revoke_user_refresh_token</a></span>
|
314
|
+
<small>Auth0::Api::V1::Users</small>
|
315
|
+
</li>
|
316
|
+
|
317
|
+
|
318
|
+
<li class="r1 ">
|
319
|
+
<span class='object_link'><a href="Auth0/Api/V1/Rules.html#rules-instance_method" title="Auth0::Api::V1::Rules#rules (method)">#rules</a></span>
|
320
|
+
<small>Auth0::Api::V1::Rules</small>
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
324
|
+
<li class="r2 ">
|
325
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#send_verification_email-instance_method" title="Auth0::Api::V1::Users#send_verification_email (method)">#send_verification_email</a></span>
|
326
|
+
<small>Auth0::Api::V1::Users</small>
|
327
|
+
</li>
|
328
|
+
|
329
|
+
|
330
|
+
<li class="r1 ">
|
331
|
+
<span class='object_link'><a href="Auth0/Api/AuthenticationEndpoints.html#signup-instance_method" title="Auth0::Api::AuthenticationEndpoints#signup (method)">#signup</a></span>
|
332
|
+
<small>Auth0::Api::AuthenticationEndpoints</small>
|
333
|
+
</li>
|
334
|
+
|
335
|
+
|
336
|
+
<li class="r2 ">
|
337
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#socialconnections_users-instance_method" title="Auth0::Api::V1::Users#socialconnections_users (method)">#socialconnections_users</a></span>
|
338
|
+
<small>Auth0::Api::V1::Users</small>
|
339
|
+
</li>
|
340
|
+
|
341
|
+
|
342
|
+
<li class="r1 ">
|
343
|
+
<span class='object_link'><a href="Auth0/Api/AuthenticationEndpoints.html#token_info-instance_method" title="Auth0::Api::AuthenticationEndpoints#token_info (method)">#token_info</a></span>
|
344
|
+
<small>Auth0::Api::AuthenticationEndpoints</small>
|
345
|
+
</li>
|
346
|
+
|
347
|
+
|
348
|
+
<li class="r2 deprecated">
|
349
|
+
<span class='object_link'><a href="Auth0/Api/V1/Clients.html#update_client-instance_method" title="Auth0::Api::V1::Clients#update_client (method)">#update_client</a></span>
|
350
|
+
<small>Auth0::Api::V1::Clients</small>
|
351
|
+
</li>
|
352
|
+
|
353
|
+
|
354
|
+
<li class="r1 ">
|
355
|
+
<span class='object_link'><a href="Auth0/Api/V1/Connections.html#update_connection-instance_method" title="Auth0::Api::V1::Connections#update_connection (method)">#update_connection</a></span>
|
356
|
+
<small>Auth0::Api::V1::Connections</small>
|
357
|
+
</li>
|
358
|
+
|
359
|
+
|
360
|
+
<li class="r2 ">
|
361
|
+
<span class='object_link'><a href="Auth0/Api/V1/Rules.html#update_rule-instance_method" title="Auth0::Api::V1::Rules#update_rule (method)">#update_rule</a></span>
|
362
|
+
<small>Auth0::Api::V1::Rules</small>
|
363
|
+
</li>
|
364
|
+
|
365
|
+
|
366
|
+
<li class="r1 ">
|
367
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#update_user_email-instance_method" title="Auth0::Api::V1::Users#update_user_email (method)">#update_user_email</a></span>
|
368
|
+
<small>Auth0::Api::V1::Users</small>
|
369
|
+
</li>
|
370
|
+
|
371
|
+
|
372
|
+
<li class="r2 ">
|
373
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#update_user_metadata-instance_method" title="Auth0::Api::V1::Users#update_user_metadata (method)">#update_user_metadata</a></span>
|
374
|
+
<small>Auth0::Api::V1::Users</small>
|
375
|
+
</li>
|
376
|
+
|
377
|
+
|
378
|
+
<li class="r1 ">
|
379
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#update_user_password-instance_method" title="Auth0::Api::V1::Users#update_user_password (method)">#update_user_password</a></span>
|
380
|
+
<small>Auth0::Api::V1::Users</small>
|
381
|
+
</li>
|
382
|
+
|
383
|
+
|
384
|
+
<li class="r2 ">
|
385
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#update_user_password_using_email-instance_method" title="Auth0::Api::V1::Users#update_user_password_using_email (method)">#update_user_password_using_email</a></span>
|
386
|
+
<small>Auth0::Api::V1::Users</small>
|
387
|
+
</li>
|
388
|
+
|
389
|
+
|
390
|
+
<li class="r1 ">
|
391
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#user-instance_method" title="Auth0::Api::V2::Users#user (method)">#user</a></span>
|
392
|
+
<small>Auth0::Api::V2::Users</small>
|
393
|
+
</li>
|
394
|
+
|
395
|
+
|
396
|
+
<li class="r2 ">
|
397
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#user-instance_method" title="Auth0::Api::V1::Users#user (method)">#user</a></span>
|
398
|
+
<small>Auth0::Api::V1::Users</small>
|
399
|
+
</li>
|
400
|
+
|
401
|
+
|
402
|
+
<li class="r1 ">
|
403
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#user_devices-instance_method" title="Auth0::Api::V1::Users#user_devices (method)">#user_devices</a></span>
|
404
|
+
<small>Auth0::Api::V1::Users</small>
|
405
|
+
</li>
|
406
|
+
|
407
|
+
|
408
|
+
<li class="r2 ">
|
409
|
+
<span class='object_link'><a href="Auth0/Api/V1/Logs.html#user_logs-instance_method" title="Auth0::Api::V1::Logs#user_logs (method)">#user_logs</a></span>
|
410
|
+
<small>Auth0::Api::V1::Logs</small>
|
411
|
+
</li>
|
412
|
+
|
413
|
+
|
414
|
+
<li class="r1 ">
|
415
|
+
<span class='object_link'><a href="Auth0/Api/V2/Users.html#users-instance_method" title="Auth0::Api::V2::Users#users (method)">#users</a></span>
|
416
|
+
<small>Auth0::Api::V2::Users</small>
|
417
|
+
</li>
|
418
|
+
|
419
|
+
|
420
|
+
<li class="r2 ">
|
421
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#users-instance_method" title="Auth0::Api::V1::Users#users (method)">#users</a></span>
|
422
|
+
<small>Auth0::Api::V1::Users</small>
|
423
|
+
</li>
|
424
|
+
|
425
|
+
|
426
|
+
<li class="r1 ">
|
427
|
+
<span class='object_link'><a href="Auth0/Api/V1/Users.html#verification_ticket-instance_method" title="Auth0::Api::V1::Users#verification_ticket (method)">#verification_ticket</a></span>
|
428
|
+
<small>Auth0::Api::V1::Users</small>
|
429
|
+
</li>
|
430
|
+
|
431
|
+
|
432
|
+
</ul>
|
433
|
+
</div>
|
434
|
+
</body>
|
435
|
+
</html>
|
@@ -0,0 +1,114 @@
|
|
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
|
+
Top Level Namespace
|
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#!top-level-namespace.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> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Top Level Namespace</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>Top Level Namespace
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</dl>
|
82
|
+
<div class="clear"></div>
|
83
|
+
|
84
|
+
<h2>Defined Under Namespace</h2>
|
85
|
+
<p class="children">
|
86
|
+
|
87
|
+
|
88
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Auth0.html" title="Auth0 (module)">Auth0</a></span>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Auth0Client.html" title="Auth0Client (class)">Auth0Client</a></span>
|
93
|
+
|
94
|
+
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div id="footer">
|
108
|
+
Generated on Mon Feb 23 01:12:53 2015 by
|
109
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
+
0.8.7.6 (ruby-2.0.0).
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</body>
|
114
|
+
</html>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
module Auth0
|
2
|
+
module Api
|
3
|
+
# {https://auth0.com/docs/auth-api}
|
4
|
+
# Describing functionality of auth0 authentication endpoints
|
5
|
+
module AuthenticationEndpoints
|
6
|
+
# {https://auth0.com/docs/auth-api#!#post--oauth-access_token}
|
7
|
+
def obtain_access_token
|
8
|
+
request_params = {
|
9
|
+
client_id: @client_id,
|
10
|
+
client_secret: @client_secret,
|
11
|
+
grant_type: 'client_credentials'
|
12
|
+
}
|
13
|
+
post("/oauth/token", request_params)["access_token"]
|
14
|
+
end
|
15
|
+
|
16
|
+
# {https://auth0.com/docs/auth-api#!#post--delegation}
|
17
|
+
def delegation(id_token, target, scope = "open_id")
|
18
|
+
request_params = {
|
19
|
+
client_id: @client_id,
|
20
|
+
grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer",
|
21
|
+
id_token: id_token,
|
22
|
+
target: target,
|
23
|
+
scope: scope
|
24
|
+
}
|
25
|
+
post("/delegation", request_params)
|
26
|
+
end
|
27
|
+
|
28
|
+
# {https://auth0.com/docs/auth-api#!#post--oauth-ro}
|
29
|
+
def login(username, password, scope = "openid", id_token=nil, connection_name="Username-Password-Authentication")
|
30
|
+
request_params = {
|
31
|
+
client_id: @client_id,
|
32
|
+
username: username,
|
33
|
+
password: password,
|
34
|
+
scope: scope,
|
35
|
+
connection: connection_name,
|
36
|
+
grand_type: "password",
|
37
|
+
id_token: id_token
|
38
|
+
}
|
39
|
+
post("/oauth/ro", request_params)
|
40
|
+
end
|
41
|
+
|
42
|
+
# {https://auth0.com/docs/auth-api#!#post--dbconnections-signup}
|
43
|
+
def signup(email, password, connection_name= "Username-Password-Authentication")
|
44
|
+
request_params = {
|
45
|
+
client_id: @client_id,
|
46
|
+
email: email,
|
47
|
+
connection: connection_name,
|
48
|
+
password: password
|
49
|
+
}
|
50
|
+
post("/dbconnections/signup", request_params)
|
51
|
+
end
|
52
|
+
|
53
|
+
# {https://auth0.com/docs/auth-api#!#post--dbconnections-change_password}
|
54
|
+
def change_password(email, password, connection_name = "Username-Password-Authentication")
|
55
|
+
request_params = {
|
56
|
+
client_id: @client_id,
|
57
|
+
email: email,
|
58
|
+
connection: connection_name,
|
59
|
+
password: password
|
60
|
+
}
|
61
|
+
post("/dbconnections/change_password", request_params)
|
62
|
+
end
|
63
|
+
|
64
|
+
# {https://auth0.com/docs/auth-api#!#post--tokeninfo}
|
65
|
+
def token_info(id_token)
|
66
|
+
request_params = { id_token: id_token}
|
67
|
+
post("/tokeninfo", request_params)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module Auth0
|
2
|
+
module Api
|
3
|
+
module V1
|
4
|
+
# {https://auth0.com/docs/api#applications}
|
5
|
+
module Clients
|
6
|
+
# {https://auth0.com/docs/api#!#get--api-clients}
|
7
|
+
def clients
|
8
|
+
path = "/api/clients"
|
9
|
+
get(path)
|
10
|
+
end
|
11
|
+
|
12
|
+
alias :get_clients :clients
|
13
|
+
|
14
|
+
# {https://auth0.com/docs/api#!#post--api-clients}
|
15
|
+
def create_client(name, callbacks="")
|
16
|
+
path = "/api/clients"
|
17
|
+
request_params = {
|
18
|
+
name: name,
|
19
|
+
callbacks: callbacks
|
20
|
+
}
|
21
|
+
post(path, request_params)
|
22
|
+
end
|
23
|
+
|
24
|
+
# @deprecated use {#patch_client}
|
25
|
+
# {https://auth0.com/docs/api#!#put--api-clients--client-id-}
|
26
|
+
def update_client(name, callbacks="", client_id=@client_id)
|
27
|
+
warn "This endpoint has been deprecated in favor of PUT."
|
28
|
+
path = "/api/clients/#{client_id}"
|
29
|
+
request_params = {
|
30
|
+
name: name,
|
31
|
+
callbacks: callbacks
|
32
|
+
}
|
33
|
+
put(path, request_params)
|
34
|
+
end
|
35
|
+
|
36
|
+
# {https://auth0.com/docs/api#!#patch--api-clients--client-id-}
|
37
|
+
def patch_client(name, callbacks="", client_id=@client_id)
|
38
|
+
path = "/api/clients/#{client_id}"
|
39
|
+
request_params = {
|
40
|
+
name: name,
|
41
|
+
callbacks: callbacks
|
42
|
+
}
|
43
|
+
patch(path, request_params)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|